Record or log all browser DOM/JQuery Event(s)

前端 未结 2 1753
感情败类
感情败类 2020-12-25 12:06

I had a problem of needing to do some stuff programmatically (in javascript) that was happening in a third party component after being triggered by some browser events (clic

2条回答
  •  执笔经年
    2020-12-25 12:31

    Yes Chrome can :)

    1. Open your the "Developer Tools" (Ctrl+Shift+I) / from the Wrench menu / or right-click on page and click "Inspect Element"
    2. Go to the "Timeline" tab.
    3. Click the little Record button at the bottom.
    4. Refresh the page.

    It will show you all load events (in yellow) as well as AJAX events that happen when you mouse-over stuff, etc.

    Cheers ;)

提交回复
热议问题