disable address bar and back and forward button of browser
<p>how can I disable or hide address bar and back and forward buttons in ie and firefox</p>

<p>i tried lots of links and solutions but non of them worked
for example for disabling back button:</p>

<pre><code>&lt;script type = "text/javascript" &gt;
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);
</code></pre>

<p></p>

<p>but it seems that it goes to previous page then it returns</p>

<p>and i trid :</p>

<pre><code> window.scrollTo(0, 0); // reset in case prev not scrolled  
        var nPageH = $(document).height();
        var nViewH = window.outerHeight;
        if (nViewH &gt; nPageH) {
            nViewH -= 250;
            $('BODY').css('height', nViewH + 'px');
        }
        window.scrollTo(0, 1);
    }
</code></pre>

<p>for disabling menu bar but it didnt work</p>

<p>what can i do</p>
