//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" />
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment