How to re-enable right click so that I can inspect HTML elements in Chrome?

前端 未结 18 1162
囚心锁ツ
囚心锁ツ 2021-01-29 20:55

I am looking at a web page which has overwritten the right-click button so to display its own popup HTML element.

This prevents me from using Chrome Developer Tools to

18条回答
  •  一个人的身影
    2021-01-29 21:16

    Another possible way, when the blocking function is made with jquery, use:

    $(document).unbind();
    

    It will clear all the onmousedown and contextmenu events attributed dynamically, that can't be erased with document.contextmenu=null; etc.

提交回复
热议问题