Excellent software and practical tutorials

Automatically close the DIV layer method
Use JS to set the time to control whether the DIV layer with the specified ID is displayed. You can implement an automatically closing prompt box. When the time is up, it will be closed immediately. This will make your web page more user-friendly. The code is actually simpler than you think, just one line of code.