Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
187
rated 0 times [  188] [ 1]  / answers: 1 / hits: 55308  / 11 Years ago, fri, may 17, 2013, 12:00:00

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

More From » javascript

 Answers
11

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




[#78170] Thursday, May 16, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kylie

Total Points: 121
Total Questions: 84
Total Answers: 91

Location: Jordan
Member since Thu, Aug 5, 2021
3 Years ago
;