to detect the url of a iframe with javascript, i've got following code:
Code: Select all
<a href="#" onClick="alert(document.getElementById('browser').src)">Show the current url</a>The result is http://video.google.com, even if the page in the iframe isnt that anymore.
I need to have the current src, not the start src.
any help would be great.
greetings,
tom