Subscribe Now!

Enter your email address:

Sunday, November 1, 2015

Disable Refresh F5 Button in Javascript

How to Disable F5 Refresh Button in Javascript

Disable Refresh F5 Button in Javascript
<Script language="javascript">
function checkKeyCode(evt)
{
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if(event.keyCode==116)
{
evt.keyCode=0;
return false
}
}
document.onkeydown=checkKeyCode;
</script>

Disable F5 Refresh Button in Asp.net and c#



0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...