[thelist] Jacascript history redirect question

.jeff jeff at members.evolt.org
Tue Apr 16 16:29:00 CDT 2002


tim,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Tim Hansen
>
> Can anyone point me to a script that will select a
> single frame from a page in the browser history & load
> it into a specific frame in a new frameset.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

the last ten items in the user's history available in an array aptly named
"history".  for security purposes, the actions you can perform on the
history object are fairly minimal though.  you can read it's length --
history.length.  you can issue a redirect to a particular entry in the
history using the go() method.  you can call built-in methods on the history
object -- go(), back(), and forward().  however, for security purposes you
can't read or write the values at specific locations in the history.

alert(history[4]);

this would result in an alert() dialog with the value "undefined" in it.

read more about it here:

<http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_histo
ry.asp>

what exactly are you trying to do?  are you perhaps trying to take a request
to a framed document and push it into frames if it's not already?

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/






More information about the thelist mailing list