Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inspect JavaScript behind DIV in Chrome's Inspect Element

I've got a simple close function that closes down a JS popup. The problem is, I don't know where to locate it amongst many many javascript files. What's the best way to find it, if I wanted to modify it? I was thinking I could use Chrome's Inspect Element, in the same way as I find CSS - but I am unsure how to do this. Could someone help me out?

Thanks to all

like image 620
user1386254 Avatar asked Mar 04 '26 04:03

user1386254


1 Answers

All JS files can be located under Sources in the Chrome Developer Tools. If you want to inspect a specific piece code when it runs, you can set the Break on options in the HTML inspection panel.

like image 105
Ryan Dao Avatar answered Mar 06 '26 18:03

Ryan Dao



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!