[thelist] removing yourself from the history list?
CDitty
mail at redhotsweeps.com
Tue Mar 20 14:01:15 CST 2001
Isn't there something like back.null for javascript to prevent use of the
back arrow? I used something very very similar at my last job and didn't
keep the code snippet.
Chris
At 11:59 AM 3/20/2001 -0800, you wrote:
>Fortune,
>
> > so we need the page to remove itself from the history list when it loads
> > itself into the frameset so that the back button will take you back to the
> > search list!
>
> Assuming that you are setting window.location.href in your self-test
>script, use window.location.replace() instead, e.g.:
>
><script language="javascript1.1">
> <!--
> // this replaces the current page in the browser's history
> // with the new page
> if (window.self == window.top) {
> window.location.replace("frameset.asp?pg=thispage") ;
> }
> // -->
></script>
><script language="javascript">
> <!--
> // in case we're dealing with a first-generation
> // javascript-enabled browser, which doesn't
> // understand the replace() method
> if (window.self == window.top) {
> window.location.href = "frameset.asp?pg=thispage" ;
> }
> // -->
></script>
>
>James Aylard
>
>
>
>---------------------------------------
>For unsubscribe and other options, including
>the Tip Harvester and archive of TheList go to:
>http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list