ODBiC Discussion Board

RE: Automatic record key, Jongr, 10-16-2006

Use javascript??

by Dave Beller, October 22, 2006 19:44

Try this - instead of:

<a href="somePage">.....

you use:

<a href="JavaScript:location.replace('somePage')">

This causes the new page to replace the current page in the browsers history - now they can't go back.

Only drawback is you have to make sure it works on browsers other than IE - havent' tested that.

I have seen many other examples as well using js:

<script language="JavaScript"> <!-- javascript:window.history.forward(1); //--> </script>

Another example:

<script> if (history.length > 0) history.go(+1); </script>



Post Your Reply:

E-mail  optional

HTTP Link: 
Link text: 


Copyright ©1997-2003, Roger Harris. All rights reserved.