javascript forbid to use right click/save/select/paste
Forbid to use mouse right click:
document.oncontextmenu = function() { return false;}
Forbid to save webpages:
<noscript><iframe src="*.htm"></iframe></noscript>
Forbid to select text:
<body oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false"onmouseup="document.selection.empty()>
Forbid to paste:
<input type=text onpaste="return false">
document.oncontextmenu = function() { return false;}
Forbid to save webpages:
<noscript><iframe src="*.htm"></iframe></noscript>
Forbid to select text:
<body oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false"onmouseup="document.selection.empty()>
Forbid to paste:
<input type=text onpaste="return false">
Previous: javascript view webpages' HTML source
Next: javascript tips 2
2292,Nickname,Homepage or email,Comments here,Add comment
