//jscript.js file
var BM = 2; // button middle
var BR = 3; // button right
function mouseDown(e)
{
try { if (event.button==BM||event.button==BR) {return false;} }
catch (e) { if (e.which == BR) {return false;} }
}
document.oncontextmenu = function() { return false; }
document.onmousedown = mouseDown;
//page source code(Add .js file in page automatically handle the right click)
script src="JScript.js" type="text/javascript" language="javascript" />
Showing posts with label Disable Mouse Right click over the .aspx page. Show all posts
Showing posts with label Disable Mouse Right click over the .aspx page. Show all posts
Saturday, March 27, 2010
Subscribe to:
Posts (Atom)