stop web pages from refreshing or disable menu bar

stop web pages from refreshing or disable menu bar and status bar and tool bar in browser and disable right click

hello frnds
basically refreshing is depend on browser
so one cant say that, that code stop browsers from refreshinghere is the code

/////////////////////first file

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript">

function getWin(url,winName,w,h,top,left){
//you can change the status of these variables by punting yes
var newWin =,winName,'menubar=no,statusbar=no,location=no,directories=no,width='+w+',height='+h+ ',top='+((screen.height-h)/5)+',left='+((screen.width-w)/2.1));


<a href="javascript:getWin('stoprefresh.php','win1','500','350','top','left');void(0);">Open</a>





<script type="text/javascript">
function showKeyCode(e)
/*alert("Inside function showKeyCode(e)");
*/var keycode =(window.event) ? event.keyCode : e.keyCode;

if(keycode == 116)
event.keyCode = 0;
event.returnValue = false;
return false;
window.document.statusbar.enable = false;

With Body section

<body onKeyDown ="showKeyCode();" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">

this is the whole code
which run exactly on CROME
and IE

You may also like...