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.

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.

Automatically closed DIV layer
 
 
Friendly reminder: This layer will disappear in 5 seconds!
score

Leave a Reply

Your email address will not be published. Required fields are marked *