Denying refresh button..

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Atiq
Forum Commoner
Posts: 26
Joined: Thu Feb 19, 2004 5:23 am

Denying refresh button..

Post by Atiq »

How can i know on a page that user has pressed refresh button.

I have a page in which i am entering some data in the tables.

If a user press refresh button it reenters the data into the tables which i don't want.

I want to know that user is on the particuler page second time in a row without going any where else.

I hope you understand.

Is there any way?

Thnaks

Atiq
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Javascript's onUnload-event can help you there. See: http://javascript.about.com/library/glo ... ad_def.htm

edit: moved to client-side.
Post Reply