0

Anyone knows a tool that collect all the js files that are loaded with a web page?

I know that Firebug through the script tab gives me all the js files downloaded with the web page, but I have to copy the URL from the tab and make the download one by one.

Another question, if I have one element in the web page, for example:

<a href="#" id="test1" ...> 

How can I know all the events associated with this element? Events that were add dynamically for example in the onsubmit event through JavaScript, for example.

document.getElementById("test1").onclick = "function()...."
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
tt0686
  • 1,771
  • 6
  • 31
  • 60
  • For your second question have a look here: http://stackoverflow.com/questions/2623118/inspect-attached-event-handlers-for-any-dom-element – scaraveos Oct 03 '11 at 14:00

1 Answers1

0

First Question: Chrome's inspector tool

Second Question: refer to this post: Inspect attached event handlers for any DOM element

Community
  • 1
  • 1
Alex
  • 34,899
  • 5
  • 77
  • 90