Forum Moderators: open

Message Too Old, No Replies

Can Javascript monitor a iframed page?

         

johnhamman

2:45 pm on Oct 3, 2006 (gmt 0)

10+ Year Member



Can javascript tell what page is currenty active in an IFrame without that page talking to the parent?
I would like to flag an action in the parent when the IFrame reaches a certain page.

DrDoc

4:25 pm on Oct 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, provided that the page is on the same domain:

iframename.location.href

johnhamman

6:30 pm on Oct 3, 2006 (gmt 0)

10+ Year Member



hmm domain is on a different subdomain. wonder if that will work. I guess i can test it! thanks
john

daveVk

1:26 am on Oct 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[msdn.microsoft.com...] you may need to set document.domain