PDA

View Full Version : preventing from refreshing a page


phani
09-05-2002, 09:43 AM
Hi,

Is there any provision for preventing the user from going back to the previous page in the window and also preventing the user from refreshing the page i.e when the user refreshes the page the page should not be refreshed but should be in the same page.

beetle
09-05-2002, 02:46 PM
refreshing - no

going back - sort of

You don't acutally prevent the user from going back, but rather never let pages store in the history. ALL of your links, will have to use this event/method

<a href="page.htm" onClick="window.location.replace(this.href); return false;">Link</a>