Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

JS - disable right click

0 votes
added May 23 in Javascript by lcjr First Warrant Officer (7,650 points)
<script id="no-rightclick" type="text/javascript">
document.ondragstart = function() { return false;}
	function nocontext(e) {
	   return false;
	document.oncontextmenu = nocontext;


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.