Click here to Skip to main content
12,546,935 members (57,784 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads


1 bookmarked

How to prevent Re-Post action caused by pressing browser's Refresh button

, 7 Feb 2012 CPOL
Could you not achieve the same thing with javascript?if (document.all){ document.onkeydown = function () { var key_f5 = 116; if (key_f5==event.keyCode){ event.keyCode=0; alert ("Sorry! You can not refresh this page!"); ...
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Member 4236865
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.161018.1 | Last Updated 7 Feb 2012
Article Copyright 2012 by Member 4236865
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid