Skip to content Skip to sidebar Skip to footer

Disable Address Bar And Back Button In Browser In Html File

How can I disable address bar and back button in browser in html file? Something Like this : Here is the demo :http://jsfiddle.net/n5pKP/5/ JS: $('.popup').click(function () {

Solution 1:

You may try like this

<inputid="Button1"type="button" value="button" onclick="window.open('WebForm1.aspx','PoP_Up','directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1024,height=768');" />

This is supported in top browser

Solution 2:

The JavaScript API exists, just that due to security issues, browser vendors disabled the hiding of the address bar.

Hiding the address bar of a browser

Instead, you could make a modal within the browser window. Twitter Bootstrap or something like this: http://sandbox.scriptiny.com/tinybox2/

Post a Comment for "Disable Address Bar And Back Button In Browser In Html File"