JavaScript alert box with timer

前端 未结 7 1786
粉色の甜心
粉色の甜心 2020-12-02 17:19

I want to display the alert box but for a certain interval. Is it possible in JavaScript?

7条回答
  •  感情败类
    2020-12-02 17:21

    setTimeout( function ( ) { alert( "moo" ); }, 10000 ); //displays msg in 10 seconds
    

提交回复
热议问题