I have a form button on a webpage. When the button is clicked, it creates a popup box. I'd like to know where the js function is that triggers the popup.
Does anyone know how to detect that in browser tools?
I have a form button on a webpage. When the button is clicked, it creates a popup box. I'd like to know where the js function is that triggers the popup.
Does anyone know how to detect that in browser tools?
In Chrome's developer tools, click on the 'Sources' tab. On the right hand panel, expand the 'Event Listeners' section, open the 'Mouse' section, and select 'Click'. This will set a breakpoint on that event, so when you click the button, it will show you the exact location in the code.