June 22nd, 2000, 08:39 AM
-
i have a page which has 3 frames
HeaderFrame, ContentFrame, FooterFrame
a file in FooterFrame, eg. file01.html
it will check whether it is now in FooterFrame or not.
how do u do it
June 24th, 2000, 06:00 PM
-
Although we all refer to a frame as an object, it isn't. A frame is an instance of the window object, thus has all of the same properties and methods of the window object.
So, window.frames.name or frame.name should give you the name of the frame you are in. You should then be able to compare that to what you are expecting.
if(frame.name = 'footerframe')
{do this}
else
{do that}
Russ
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by ccm:
i have a page which has 3 frames
HeaderFrame, ContentFrame, FooterFrame
a file in FooterFrame, eg. file01.html
it will check whether it is now in FooterFrame or not.
how do u do it[/quote]