定时自动关闭的窗口

在源代码

1<body>后加入下面的代码:   
2&lt; script LANGUAGE=“JavaScript”&gt; <!--   
3setTimeout(’window.close();’, 10000);   
4\--> &lt; /script&gt;   
5其中的set Timeout是一个用来设定延迟时间的函数,这里10000表示10秒钟。</body>
Published At
Categories with 网页设计
comments powered by Disqus