开发者

Loaded JavaScript files and dynamically events

开发者 https://www.devze.com 2023-04-09 23:59 出处:网络
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

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

精彩评论

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