Disable Right-Click

Add the following code to the HTML document in the <head> section i.e. before </head>

<script language="javascript" type="text/javascript">
	document.oncontextmenu=RightMouseDown;
	document.onmousedown = mouseDown; 

	function mouseDown(e) {
		if (e.which==3) {//righClick
		}
	}
function RightMouseDown() { return false;}
</script>

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.