Home

MasterDiz.com

Members Area

Free WebMaster Resources

Copy and paste between <body> and </body>


Disable right click mouse

html document
<html>

<head>

<title>

</tile>

</head>

<body>

<script language="JavaScript1.2" type="text/javascript">

<!--if (document.all)
document.body.onmousedown=new Function("if (event.button==2||event.button==3)alert('The right mouse button has been disabled')")//-->

</script>

</body>

</html>

Script

<script language="JavaScript1.2" type="text/javascript">

<!--if (document.all)
document.body.onmousedown=new Function("if (event.button==2||event.button==3)alert('The right mouse button has been disabled')")//-->


</script>

 


Disclaimer