Jquery/JS prevent right click menu in browsers

前端 未结 12 1765
孤城傲影
孤城傲影 2020-12-03 00:42

I have my div with a right click popup menu:

// Attatch right click event to folder for extra options
$(\'#fBox\' + folderID).mousedown(function(event) {
            


        
12条回答
  •  被撕碎了的回忆
    2020-12-03 00:55

    This is a default behavior of browsers now to disable the alternate-click override. Each user has to allow this behavior in recent browsers. For instance, I don't allow this behavior as I always want my default pop-up menu.

提交回复
热议问题