Javascript Reference
Categories: tips

javascript forbid to use right click/save/select/paste

@March 23, 2008, 1:51 p.m.
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">
order lipitor online <a href="">order atorvastatin 10mg for sale</a> order atorvastatin 80mg
Cdirfz - 4 months
atorvastatin price <a href="">atorvastatin generic</a> lipitor 40mg canada
Koryfr - 4 months

Powered by Linode.