Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding address bar in all browsers [duplicate]

Tags:

javascript

I need to hide the address bar of all browsers through my JavaScript code. Is it possible to do?

Here is my code:

window.open("displayPdf.php?mnth="+mnth+"&year="+year+"&val="+newVal);
    dom.disable_window_open_feature.location
    dom.disable_window_open_feature.resizable
    dom.disable_window_open_feature.status
like image 346
Siva G Avatar asked May 17 '13 07:05

Siva G


1 Answers

This is no longer possible in modern browsers due to security restrictions.

Official(-ish) Sources:

  • Firefox

    In Firefox 3, dom.disable_window_open_feature.location now defaults to true, forcing the presence of the Location Bar much like in IE7. See bug 337344 for more information.

  • Internet Explorer 7 and later

    In Internet Explorer 6, location specifies whether to display the Address Bar.

    (Implying the behaviour ends with IE6)

  • Chrome/Chromium

    Those toolbar hiding parameters are ignored in Chrome. You will also notice that modern browsers are moving towards not hiding it as security / anti phishing measures. Also see https://bugzilla.mozilla.org/show_bug.cgi?id=337344

like image 101
2 revs Avatar answered Nov 02 '22 01:11

2 revs