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

前端 未结 18 1121
囚心锁ツ
囚心锁ツ 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:12

    you can use following code for re-enable mouse right click.

    document.oncontextmenu = function(){}
    

    and you can use shortcut key (Ctrl+Shift+i) to open inspect elements in chrome in windows OS.

提交回复
热议问题