Welcome Guest, Not a member yet? Register   Sign In
howto get iframe uri?
#1

[eluser]vile[/eluser]
how do i get iframe uri?
thanks
#2

[eluser]Colin Williams[/eluser]
Code:
iFrame = document.getElementById('iframeid');
iFrameSrc = iFrame.getAttribute('src');

Or, if you could care less about accessing the iFrame object any further:

Code:
iFrameSrc = document.getElementById('iframeid').getAttribute('src');
#3

[eluser]vile[/eluser]
thanks it worked!
i forgot to use javascript. im thinking too deep.
#4

[eluser]Renea077[/eluser]
Thank you very much. This seems simple enough. I have been forgetting to use javascript also. I feel pretty dumb about that. Sometimes this stuff really hurts my brain, so it's great to have such a useful resource as this forum when I need it. I have found answers to just about all of the questions that I have had, which I am really grateful for.




Theme © iAndrew 2016 - Forum software by © MyBB