How do you know which JS created a DOM element in the DOM structure?

the problem I encounter now is: I have a page, after the pop-up box selects the details to confirm, when I return to the main page, if I operate very quickly, an error box will always pop up, but if the operation is a little slower, this error box will not appear again, as soon as I break the mode, this box will not appear at all, so I can not find which step of this error box pops up now. Because more js frames are used, can I find where the box pops up according to the elements generated on the page (the DOM element of this error box)? Or is there any good way to find out what the problem is?


right click and try all three.

clipboard.png


the browser console checks to see if there is any special id,class in this error pop-up window, and
searches the relevant content globally if there is any.


can't do what you want, but you can tell where the problem is when you need to specify a score of console.log, or a loop of index, and then look at console after popping up


see

on Event Listeners.
Menu