Executing JavaScript after X seconds

前端 未结 3 434
天涯浪人
天涯浪人 2020-11-30 04:41

I am building a interstitial page, using

and JavaScript, really simple script but neat.

Everything is working, but I also would like to close the div\'s aft

3条回答
  •  暖寄归人
    2020-11-30 05:19

    I believe you are looking for the setTimeout function.

    To make your code a little neater, define a separate function for onclick in a

提交回复
热议问题