function Iesc () {return false;}
function Irec () {return true;}
function Disablekeys () {
if (Event.ctrlkey | | event.shiftkey | | event.altkey) {
Window.event.returnValue = false;
Iesc ();
}
}
Document.ondragstart = Iesc;
Document.onkeydown = Disablekeys;
Document.oncontextmenu = Iesc;
if (typeof Document.onselectstart! = "undefined")
Document.onselectstart = Iesc;
else {//qsyz.net
Document. = Iesc;
Document. = Irec;
}
function Disablerightclick (www_qsyz_net) {
if (window. Event) {
if (Www_qsyz_net.which = = 2 | | www_qsyz_net.which = = 3)
Iesc ();
}
Else
if (Event.button = = 2 | | event.button = = 3) {
Event.cancelbubble = True
Event.returnvalue = false;
Iesc ();
}
}
not going to the meeting, just a process!
This article is from the "Happy and simple" blog, make sure to keep this source http://1120173856.blog.51cto.com/2882946/1636563
JavaScript prevents copy + disable right-click