<html> <head> <title>浏览器对象</title> </head> <body> <h2>操作成功</h2> <input type="text" id="xianshi" style="border:0"/> <a href="#">返回</a> <script type="text/javascript"> var num=5; function sec(){ var jishi=num+"秒后回到主页"; document.getElementById("xianshi").value=jishi; num=num-1; var i=setTimeout("sec()",1000); if(num==-1){clearTimeout(i);window.open("https://www.baidu.com/")}; } sec(); j.style.color="red"; </script> </body> </html>
懷淰過厾3139859