current src of iframe with getElementById?
Posted: Sun Nov 19, 2006 9:49 pm
hello everybody,
to detect the url of a iframe with javascript, i've got following code:
the iframe has the src set to http://video.google.com and the id = browser.
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
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