我如何可以禁用或隱藏地址欄和背部,並在IE前進按鈕和firefox的前進按鈕禁用地址欄和背部和瀏覽器
我試過很多鏈接和解決方案,但它們的非工作 例如用於禁用後退按鈕:
<script type = "text/javascript" >
function changeHashOnLoad() {
window.location.href += "#";
setTimeout("changeHashAgain()", "50");
}
function changeHashAgain() {
window.location.href += "1";
}
var storedHash = window.location.hash;
window.setInterval(function() {
if (window.location.hash != storedHash) {
window.location.hash = storedHash;
}
}, 50);
但似乎它去上一個頁面,然後返回
的d我TRID:
window.scrollTo(0, 0); // reset in case prev not scrolled
var nPageH = $(document).height();
var nViewH = window.outerHeight;
if (nViewH > nPageH) {
nViewH -= 250;
$('BODY').css('height', nViewH + 'px');
}
window.scrollTo(0, 1);
}
禁用菜單欄,但它沒有工作
我能做些什麼禁用後退按鈕的
請描述一下你到底想做什麼,以便我們能更好地幫助你。 – Codebeat 2012-02-29 09:09:12
正如我所說我想隱藏地址欄和後退和前進按鈕 – Adrakadabra 2012-03-03 08:31:18