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

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

    Disabling the "SETTINGS > PRIVACY > don´t allow JavaScript" in Chrome will enable the right click function and allow the Firebug Console to work; but will also disable all the other JavaScript codes.

    The right way to do this is to disable only the specific JavaScript; looking for any of the following lines of code:

    • Function disableclick
    • Function click … return false;
    • body oncontextmenu="return false;"

提交回复
热议问题