Search code examples
javascripthtmlgoogle-chromedebuggingdeveloper-tools

How can I find what is sending out a confirm?


I have an issue with a server I'm working with, and I need to figure out where a certain error is coming from. Specifically, I would like to know what script is having trouble. I get three consecutive confirm boxes alerting me of an error and asking if I want to continue when a certain part of a page starts to load.

Is there a way I can figure out where those are coming from, specifically within the Chrome Developer tools?

Thanks


Solution

  • Rightclick on your page, click "select element" and then take the console tab.

    Developer console

    It will show u errors that have happened on this page and its source (bottom left). Click on that source to see the lines where the error was detected. Excuse my not-so-decent drawing skills :)