简体   繁体   中英

How do I check if any Javascript event has been fired, anywhere?

I came across this question: How to find out which JavaScript events fired?

But, that method of using Firebug will help me only if I log the events of a particular element right?

Here's my situation:

I want to analyze a webpage. It displays a list of headlines, and after you scroll down at the bottom of the page, something happens and then it fetches the next 20 headlines from the server and adds it back to the page. I would like to know exactly which event is fired and which function is called as this happens. How do I do that?

Use Chrome or Firefox Developer Tools and check under the networks tab. For Firebug check console or scripts. It shows you all the external files that have been used in your page.

别忘了

console.log("event fired");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM