Forum Moderators: open

Message Too Old, No Replies

querying frameset to see which page is loaded in to a frame

         

mintymouthwash

2:30 pm on Dec 20, 2004 (gmt 0)

10+ Year Member



I want to check to see if a page is loaded into a certain frame in a framset would this be a good way of going about it?

if (parent.frame1.location.href!= "gamepage.htm")

or

if (parent.frame1.location.pathname!= "gamepage.htm")

orion_rus

5:49 pm on Dec 20, 2004 (gmt 0)

10+ Year Member



The decision about,
if (parent.frame1.location.href!= "gamepage.htm") {}
seems better...
But i suggest u not to use frame if html which u load there placed in your own site. Try to move it to the div or another container. Search engines didn't index that frames

mintymouthwash

9:27 am on Dec 21, 2004 (gmt 0)

10+ Year Member



Hi thanks for your reply, I'll go with that answer. I'm normally not a frame user when building sites because of the problems you mentioned. This development, however is offline and the frames are hidden and are used to collect data on interval timers, which ultimately ends up being pulled into a flash document in the visible frame. Thanks again for your help