Copy codeThe Code is as follows:
<! -- Disable right-click a webpage: -->
Document. body. oncontextmenu = function rightClick () {window. event. returnValue = false ;}
<! -- Disable saving a webpage as: -->
<Noscript> <iframe src = *. html> </iframe> </noscript>
<! -- Disable Text Selection: -->
<Script type = "text/javascript">
Var omitformtags = ["input", "textarea", "select"]
Omitformtags = omitformtags. join ("| ")
Function disableselect (e ){
If (omitformtags.indexOf(e.tar get. tagName. toLowerCase () =-1)
Return false
}
Function reEnable (){
Return true
}
If (typeof document. onselectstart! = "Undefined ")
Document. onselectstart = new Function ("return false ")
Else {
Document. onmousedown = disableselect
Document. onmouseup = reEnable
}
</Script>
<! -- Disable right-click: -->
<Script>
Function stop (){
Return false;
}
Document. oncontextmenu = stop;
</Script>