|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Getting current iframe URL problem
Hi I am having a problem getting current URL of an iframe on one of my pages, the only thing I have tried that remotely works is document.getElementById("frame_id").src << and with this it only returns the original domain of the frame, not the current. I have also tried all of the following and none have even come close to working:
window.frames["frame_name"].location.href window.frames["frame_name"].location window.frames["frame_name"].src If you know any solution I would greatly appreciate your help, thanks. |
|
#2
|
|||
|
|||
|
correction
I have a correction to make, when I use:
window.frames["frame_name"].location.href it returns "about:blank" no matter what URL is open, including google and yahoo. What should I do????? Thanks. |
|
#3
|
||||
|
||||
|
location
Maybe
window.frames["frame_name"].src |
|
#4
|
|||
|
|||
|
naa
naa man I had already tried that b4 and it didn't work. I think I have tried pretty much everything, I don't know if this is even possible, the only lead I have is window.frames["frame_name"].location.href
which returns "about:blank" everytime I use it, is there something I can do to get this to work? Thanks. |
|
#5
|
||||
|
||||
|
frame location
Sorry, I didn't notice that that was one you tried. Can you give an example of exactly how you want it to look? If not www.site_domain.com/page.html what?
|
|
#6
|
||||
|
||||
|
something to try...
here is something you could try...
it probly doesnt really work right now but if the iframe is loaded as a window object you could use something like... window.[objectname].location; or window.document.[objectname].location; or window.document.all.[objectname].location; im sorry i cant test any of these but i am on vacation and i forgot my windows disks and, using msdos, complete screwed up my computer, i have to reformat my systemdrive and jumpdrive, i can only browse, edit, save and create files, i cant delete, move, copy, paste, rename, exc. it sucks but anyway this thread isnt about me so good luck with the above coding!! colton22 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Getting current iframe URL problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|