开发者

Loaded JavaScript files and dynamically events

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()...."


First Question: Chrome's inspector tool

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜