HighTechTalks DotNet Forums  

RE: HOWTO Disable F5/Refresh.

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss RE: HOWTO Disable F5/Refresh. in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ATS
 
Posts: n/a

Default RE: HOWTO Disable F5/Refresh. - 03-27-2006 , 01:21 PM






Never mind, I found the answer. This works great. Let me know if I missed
anything, and thanks in advance.

var VK_F5 = 0x74;

document.onkeydown = function()
{
if (event.keyCode == VK_F5)
{
event.keyCode = 0;
event.returnValue = false;
event.cancelBubble = true;
return false;
}
}



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.