123 Eng

Engineering the engineers™


Latest Jobs   Forum Map

 


Home

Source Codes

Engineering Colleges

BE Students

Training  Reports (updated)

Seminar Reports (updated

Placement Papers (updated)

Forums

   Computer Science / IT

   Electronics

   Electrical

   Mechanical

   Chemical

   Civil

   CAT / MBA

   GMAT / Foreign MBA

Latest Jobs

Engineering Jobs / Technical Jobs

Management Jobs

Sitemap

About-Us

Terms of use

Displaying  Source Code(s)  
 

 
No Refresh, No Backspace, No Right Click

--------------------------------------------------------------------------------

Description : To disable the RIGHT CLICK, the BACKSPACE (for navigation purposes), and the REFRESH.

HTML>
<HEAD>
<TITLE>NO REFRESH, NO REFRESH, NO BACKSPACE, NO ALT-BACKSPACE, ETC., ETC..</TITLE>
<SCRIPT LANGUAGE=JAVASCRIPT>
var oLastBtn=0;
bIsMenu = false;
//No Right CLICK************************
// ****************************
If (window.Event)
document.captureEvents(Event.MOUSEUP);
Function nocontextmenu()
{
event.cancelBubble = True
event.returnValue = false;
return false;
}
Function norightclick(e)
{
If (window.Event)
{
If (e.which !=1)
return false;
}
Else
If (event.button !=1)
{
event.cancelBubble = True
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
//**************************************
// ****************************
// Block backspace onKeyDown************
// ***************************
Function onKeyDown() {
If ( (event.altKey) || ((event.keyCode == 8) &&
(event.srcElement.type != "text" &&
event.srcElement.type != "textarea" &&
event.srcElement.type != "password")) ||
((event.ctrlKey) && ((event.keyCode == 78) || (event.keyCode == 82)) ) ||


(event.keyCode == 116) ) {
event.keyCode = 0;
event.returnValue = false;
}
}
</SCRIPT>
</HEAD>
<BODY onKeyDown="onKeyDown();" BGCOLOR="#639ace" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0">
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD><H3>NO REFRESH, NO REFRESH, NO BACKSPACE, NO ALT-BACKSPACE, ETC., ETC..</H3></TD>
</TR>
<TR>
<TD>Please note that For this script To run effectively it Is recommended that you Open a New browser using script To disable the navigation, link bars, etc., etc..</TD>
</TR>
</TABLE>
</BODY>
</HTML>
 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG