Script Categories













Page Details >>> No Right Click.

Ever wanted to prevent users from borrowing images from your site through right-clicking them and "save image as..." or right-clicking the page and viewing your page source? This script will (attempt to) disable the right click on your page! As explained, however, this script is not fool-proof !

Try right-clicking the page!

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
var tenth='';function ninth() {
if (document.all) {(tenth);return false;}}
function twelfth(e) {
if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(tenth);return false;}}}
if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=twelfth;}
else{document.onmouseup=twelfth;document.oncontextmenu=ninth;}
document.oncontextmenu=new Function('return false')
</script>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).




©