The alerts do not disappear
As I read in the documentation there is the property duration, but I use it and when testing the alert it remains there only until I close it, but it is not exactly what I need.
I create the alerts as follows:
I would expect that after the alert appeared, it would remain on the screen for five seconds and then disappear, but this does not happen.
Thanks for reading, I hope someone can help me
I solved this using the setTimeout method as you recommend me in the following way.
It works in the following way
Thanks, I think this could be in the documentation. no matter how simple it is, it would help more than one.