Use Chrome's webkit inspector to remove an event listener

后端 未结 5 1417
不知归路
不知归路 2020-12-29 07:28

I know you can see the event listeners in the Chrome Inspector but i\'m doing some debugging work and there are so many event listeners lying around I\'d like to disable som

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 08:22

    Maybe late but.

    In chrome there is a specific button to remove the method call of a specific event.

    Right click on the html input (boutton in my example) inspect element, chrome opens the element viewer tab (in html mode) with another panel composed of subtabs in this panel click on the "event listener" tab and unfold the event you're intersted in (onclick in my example) put the mouse point over the name of the button you inspected and a button "remove" will apear and one clicked the event listener is deleted for the current page loaded.

提交回复
热议问题