[thelist] Dumb Question

Karen J. Bowen lists at miinx.com.au
Fri Sep 6 22:51:00 CDT 2002


Karen J. Bowen wrote:
> if (top != "myframeset.htm") {
>     var path = location.href;
>     top.location = "myframeset.htm"
>     top.frames[1].location = path
> }
>

Mannnn.... having a dumb day myself.  Redundant info in tips, crappy
javascript...

Ok, the above won't work as once you've loaded your frameset with
'top.location' you're then in that frame, so any more JS in the last
page (i.e. the last line above) will not run...  duh...

So - you need to store the requested page address somehow, then have
some code in your frameset page to load the requested page.

The article link in my previous email
(http://tech.irt.org/articles/js126/index.htm) explains a couple of ways
to do this, check it out and holler if it doesn't make sense.

Good luck,
Karen
-------
Miinx Design & Development
e :: karen at miinx.com.au
p :: 0413.880.302
w :: www.miinx.com.au





More information about the thelist mailing list