disable mouse right click javascript

JavaScript
document.oncontextmenu = document.body.oncontextmenu = function() {return false;}

Source

Also in JavaScript: