Answers for "disable right click menu on image css"

CSS
0

disable right click menu on image css

var client = {
     init: function() {
          var o=this;

          // this will disable dragging of all images
          $("img").mousedown(function(e){
               e.preventDefault()
          });

          // this will disable right-click on all images
          $("body").on("contextmenu",function(e){
               return false;
          });
    }
};
Posted by: Guest on March-21-2021

Code answers related to "disable right click menu on image css"

Browse Popular Code Answers by Language