vex
14 years agoContributor
How can I get TC to get a destination property of a link handled by javascript?
We have a link on a webpage that will dynamically change between Mac and Windows, depending on what is detected.
The HTML code for this link is here:
And for download_clicked, it shows:
In TC I'm unable to pull this location out of this button. I'm wondering if there is a way to? In other words - I want a way to find out where clicking this button is ultimately going to take me, which in the windows case should be https://192.168.0.1/download/win.exe
Thanks :)
The HTML code for this link is here:
<div id="download_but"><div class="button_large_download" onclick="download_clicked('windows', false, '');"><a href='#'>Download for Windows</a><span></span></div>
</div>
And for download_clicked, it shows:
if (platform == 'mac') { window.location = 'https://192.168.0.1/download/mac.pkg'; }
if (platform == 'linux') { window.location = 'http://192.168.0.1/products/latest.bin'; }
if (platform == 'windows') { window.location = 'https://192.168.0.1/download/win.exe'; }
In TC I'm unable to pull this location out of this button. I'm wondering if there is a way to? In other words - I want a way to find out where clicking this button is ultimately going to take me, which in the windows case should be https://192.168.0.1/download/win.exe
Thanks :)