0

In a browser you can determine what files are loaded when a website loads and you can even view the timeline.

But is there any way to determine what javascript calls are being made once the script loads for a website?(in firefox or chrome or any software package)

Hope you got my question

(Because that would be useful for debugging logical javascript errors and others I suppose)

Naveen
  • 7,944
  • 12
  • 78
  • 165

1 Answers1

0

I use Chrome's Developer Tools for this:

enter image description here

Check the click box, and then click on the element on the page you want to find the handler for. If you are using jQuery (or similar library), you may have to step through their code before you get to yours.

Taken from: How do I find out what javascript function is being called by an object's onclick event?


Typically I just use logging in FireBug personally (which despite my desperate approach to avoid Chrome, is turning out to force me to adopt it with built-in developer tools).


Community
  • 1
  • 1
Nicholas Hazel
  • 3,758
  • 1
  • 22
  • 34