How do I know which script manipulated a gift and modified the HTML attributes?

Asked

Viewed 77 times

1

It is possible to know through the console?

Imagine this story: You have several Javascript files embedded in the page header, and when you send a post, out of nowhere appears a style="display:None" in the return input, but it is not PHP that he is doing it, it is some script in Javascript or jquery, or gift, it is possible to locate the element that modified it, if you know that it used the element, the class or id of the input to capture and modify it, there is somewhere in the console that you can know which javascript modified it, or some script I can do to capture the method that executed this change, I don’t know?

  • open dev tools, and debug the page

  • spoke Greek now. Where is dev tools? I use Chrome.

  • 3

    In your google Chrome, press the F12 key, click the sources tab, then click the button that has a pause icon. update the page or send the post and see that it will stop at every point where javascript is executed, will appear a few tabs below with the script running that event

  • I had already tried this but could not locate... so I thought there were other ways, but I ended up using firefox, it has a better debug for this.

1 answer

2


I already found the solution, opened the Firefox debug and could see the files that are loaded while running.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.