fas.khan
fas.khan

Reputation: 47

how to know that what Javascript (line & file) is being used on a Web Page

Is it possible to find out (in Chrome/FireFox) that which Javascript file (and hopefully line number) is being used on a web page by a specific element?

Thanks

Upvotes: 1

Views: 4217

Answers (1)

Rick Buczynski
Rick Buczynski

Reputation: 837

The question is a bit unclear, but I can show you how to watch a particular element for JavaScript interaction in Chrome:

enter image description here

Then, after you do that, watch as we click the checkbox:

enter image description here

Some reference for Chrome: https://developers.google.com/chrome-developer-tools/docs/overview

Most other browser work in a similar fashion. There are also other ways to find out how JavaScript code is interacting with your page, but you'll need to give me a more specific scenario to answer that.

Upvotes: 3

Related Questions