<body> <!--先编写好网页布局--> <h2>操作成功</h2> <p><span id="minute"></span>秒回到主页<a href="javascript:back();">返回</a></p> <script type="text/javascript"> var num=5; var myId=document.getElementById("minute"); setInterval("myfunction()",1000); function myfunction(){ myId.value=num; num--; if(num==0){ window.open("http://www.baidu.com/", "_blank"); } } function back(){ window.history.back(); }
添加回答
举报
0/150
提交
取消