[thelist] removing yourself from the history list?

CDitty mail at redhotsweeps.com
Tue Mar 20 19:05:01 CST 2001


Think I found it.  Try this in your a href tags.

  ONCLICK="location.replace(this.href); return false;

I just tested it and it seemed to work for me.

Good luck.

At 02:20 PM 3/20/2001 -0600, you wrote:
>Think I remembered wrong.  I think it may be something like 
>history.forward or something similar.  I've done a search but can't find 
>anything similar. Anyone?
>
>At 01:58 PM 3/20/2001 -0600, you wrote:
>>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 !
>>
>>
>>---------------------------------------
>>For unsubscribe and other options, including
>>the Tip Harvester and archive of TheList go to:
>>http://lists.evolt.org Workers of the Web, evolt !
>
>
>---------------------------------------
>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