Computer Magic Logo
Disable right-click context menu

Friday, January 22, 2016

Published by Aristotelis Pitaridis

The context menu is a menu that appears when the user right-clicks on the browser. We can use the script below if we want to disable it.

$(function() {
    $(document).bind("contextmenu", function (e) {
        return false;
    });
});