<!DOCTYPE html><html>?<head>? <title>瀏覽器對象</title> ?? <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> ???</head>?<body>? <h4>操作成功</h4>? <p>? <b id="second">5</b>秒后回到主頁 ? <a href="javascript:void(0)" onclick="goback()">返回</a>? </p>? <script type="text/javascript"> ?? var sec=document.getElementById("second");? var i=5;? function func(){? i--;? sec.innerHTML=i;? if(i==1){? window.location.;? }? }? var s=setInterval("func()",1000);? function goback(){ window.history.back(); }? </script>?</body></html>
點擊“返回”鏈接,返回不了上一頁面,請問是怎么回事?
慕絲6247632
2016-09-26 20:37:21