When a window.alert() is called, the script shouldnt wait for the user input(clicking ok for example), it should continue.
How could I achieve that without using the setTimeout() function?
this.alert('Window')
console.log('Continue here, dont wait for user input on the "Window"')
alertis blocking.. Use some custom UI to display alert instead ofwindow.alertmodal boxtake a look at that topic.console.time("alert"); alert("...waiting"); console.timeEnd("alert");If you cannot block, the measured duration should be like < 1ms