View Full Version : Disable F5 / Refresh button for Netscape Browser

12-16-2002, 12:16 PM
Hi All,
I am able to disable the F5 and Refresh button using Javascript for Internet Explorer but haven't been able to find a solution for Netscape browsers

The code i have used for IE is

if (document.all){
document.onkeydown = function (){
var key_f5 = 116; // 116 = F5

if (key_f11==event.keyCode){
alert("F5 pressed");
return false;

Plz help me find a solution!!!


12-16-2002, 01:36 PM
function document.onKeyPress()
if(event.keyCode=116)return false;

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum