[英]window.history.go(-1) is not working in ie 6
window.history.go(-1) 在 IE6 中不起作用
可以在 IE6 中工作的后退按鈕的任何其他解決方案。
IE6 與 window.history.go() 有問題。 它適用於這樣的常規鏈接:
<a href='#' onclick='history.go(-1);'>Back!</a>
但其他一些將無法正常工作。 你可以試試這個:
<button onclick='history.go(-1);'>Back!</button>
但我不太確定這是否可行。 您還可以顯示所有其他瀏覽器的按鈕和 IE 的鏈接:
<button id='backButton' onclick='history.go(-1);'>Back!</button>
<!--[if IE 6]>
<script type='text/javascript'>
document.getElementById('backButton').style.display = 'none';
</script>
<a href='#' onclick='history.go(-1);'>Back!</a>
<![endif]-->
您可以使用window.history.back()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.