css disable mouse right click code example Example: disable right click with css document.oncontextmenu = new Function("return false;");