Click to See Complete Forum and Search --> : how to stop page refreshing


itsmani1
04-27-2006, 10:16 AM
I want to users not able to go back page and also not to refresh current page ? how can i do so?

Thanx.

ray326
04-27-2006, 02:01 PM
In general you can't.

felgall
04-27-2006, 05:16 PM
Ask them not to and if they feel like it they will comply.

The web browser is under the control of the person using it and a web page cannot stop them using their browser however they like.

slaughters
04-27-2006, 05:46 PM
I want to users not able to go back page and also not to refresh current page ? how can i do so?

Thanx.When you leave the page in question do not use the <a> tag or the javascript location.href command to do it. Use window.location.replace to do it. The replace method replaces the current History entry with the specified URL. After calling the replace method, you cannot navigate back to the previous URL using the browser's Back button.

P.S. Also use the pragma no-cache option on the page so it is not cached on the users local hard drive.

itsmani1
04-28-2006, 03:32 AM
P.S. Also use the pragma no-cache option on the page so it is not cached on the users local hard drive.

Can you please tell me how to use no-cache

Thanks

slaughters
04-28-2006, 07:36 AM
*SIGH* You might have at least put forth the effort of the entire 3 seconds it took to do a google seach for it.

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

In between the <HEAD> </HEAD> tags.