当前位置:
首页 >
前端技术
> javascript
>内容正文
javascript
JavaScript -- Window-Interval
生活随笔
收集整理的这篇文章主要介绍了
JavaScript -- Window-Interval
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
-----031-Window-Interval.html-----
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 5 <title>标题</title> 6 </head> 7 <body> 8 <form name="frm"> 9 <input name="txt" border="0" size="0"/> 10 <input type="button" value="停止" onclick="clearInterval(itv)"/> 11 <input type="button" value="关闭" onclick="window.close()"/> 12 </form> 13 <script type="text/javascript"> 14 function setSize() 15 { 16 document.frm.txt.size++; 17 } 18 itv = setInterval(setSize, 200); 19 </script> 20 </body> 21 </html>转载于:https://www.cnblogs.com/baijifeilong/p/3728082.html
总结
以上是生活随笔为你收集整理的JavaScript -- Window-Interval的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: html 8 盒子的background
- 下一篇: 深入理解javascript原型和闭包(