setTimeout()与setInterval() 分类: 网页编程【html、js】 20091207 00:37 337人阅读 评论(0) 收藏 代码示例: <html> <head> <mce:script type="text/javascript"><!-- function timedMsg(){ var t=setTimeout("alert('5 seconds!')",5000) } // --></mce:script> </head> <body> <form> <input type="button" value="点击我" onClick="timedMsg()"> </form> </body> </html> 版权声明:本文为博主原创文章,未经博主允许不得转载。