a. marsh is correct but you can try the following:
1) You can use the location replace method when changing the location. This replaces the current history location with the new location. However older browsers do not support this method, which is why it is required to test for the images object:
<script language="JavaScript"><!--
if (document.images)
location.replace('http://w
else
location.href = 'apage.html';
//--></script>
Note: in Opera replace() will work, but only with absolute URL's.
2) You can load the new location into another window, and then close the old window:
In the first page:
<script langauge="JavaScript"><!--
function newWindow(fileName,windowN
//--></script>
<a href="javascript:newWindow
In the next window:
<script language="JavaScript"><!--
function newWindow(fileName,windowN
function replaceURL(fileName) { newWindow(fileName,'window
//--></script>
<a href="javascript:replaceUR
3) You can open a window without a toolbar:
<script language="JavaScript"><!--
msgWindow=window.open('apa
//--></script>
However, this does not totally stop the user from being able to go back to the previous page.
4) You can add code to the previous page to force the browser to go forwards again:
<script language="JavaScript"><!--
javascript:window.history.
//--></script>
Main Topics
Browse All Topics





by: a.marshPosted on 2001-07-21 at 04:54:50ID: 6304613
Basically you can't - at least not 100% guaranteed.
cript/311. htm
Check out:
http://developer.irt.org/s
:o)
Ant