HighDots Forums  

reading location from a ifram

Javascript JavaScript language (comp.lang.javascript)


Discuss reading location from a ifram in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PortalWiz
 
Posts: n/a

Default reading location from a ifram - 06-13-2008 , 06:47 AM






Hi all,

I have the following problem. In my parent page I like to read the url
of a iframe to keep my navigation menu up to date. I tried a lot of
options but get the permission denied error when I try to do the
following:

frames['myframe'].window.location.href

or

document.getElementById('myframe').contentDocument .location

Is there any way to read the current location from a iFrame. reading
the src property just gives me the start page and not where the user
navigated to.

Help would be much appreciated.

Regards E.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.