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 () {
var curr_browser = navigator.appName;
if (curr_browser == "Microsoft Internet Explorer") {
window.opener = self;
}
window.open('http://www.google.com/', 'null', 'width=900,height=750,toolbar=no,scrollbars=no,location=no,resizable =no');
window.moveTo(0, 0);
window.resizeTo(screen.width, screen.height - 100);
});
HTML:
<a target="_parent" href="javascript:void(0);" class="popup">Open new window</a>
Right now its opening on click. I want to open it directly as popup. Like I double click on test.html , its should appear my html data and disabled address bar and with no back button.
How it can be done?