So I want to make a custom prompt/alert/confirm box, but I have it so that many of those happen in sequence. In a normal prompt, this wouldn't be an issue because the JavaScript pauses and waits for the user to click "OK" or "Cancel" Before continuing execution, however a custom box I fear could break the whole system. I've seen some Things about async and stuff, but they're kind of confusing.
If you wanna see the code github is https://github.com/NonzeroCornet/universalai
I'd leave it how it is, but I want to submit it to Experiments with Google and it needs to look good.
There have been some news in this matter if you'd like to go more native way, depending on your browser compatibility you could use dialog along with inert attribute and style the dialog & backdrop to your needs.