I want to overload the standard alert behavior. This is done simply:
function alert(_m){ //code // ΠΏΡΠ΅Π΄ΠΏΠΎΠ»ΠΎΠΆΠΈΠΌ Π·Π΄Π΅ΡΡ Ρ ΡΠΈΡΡΡ ΠΎΠΊΠΎΡΠΊΠΎ ΠΈΠ· div ΡΠ»Π΅ΠΌΠ΅Π½ΡΠΎΠ² ΠΈ ΠΎΠ΄Π½ΠΎΠΉ ΠΊΠ½ΠΎΠΏΠΊΠΎΠΉ, ΠΏΡΠΎΡΡΠΎ Π΄ΠΈΠ·Π°ΠΉΠ½ ΠΌΠ΅Π½ΡΡ. } The question is how do I delay the execution of the function until my user performs the necessary actions in my window. The delay is not suitable, as this is the worst option.
I myself believe that there is a certain way to manage the script, and you can somehow pause it, and then continue from the breakpoint or another point.
PS: firebug somehow allows you to debug, then there is a mechanism ...