Hiding Address Bar on Page Load Using JavaScript

On August 10, 2006, in Technical, by Rahmansaher

 Today , I was playing around of ways of how you can Hide an Address/Tool Bar on a Page Reload. I looked at couple of solutions on the net but nothing seems to be available for IE and Firefox working together. Then I figured it out a way to work it out for both. This is the code I used, to solve my problem.    Â

< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">



If the window does not open, please turn off the pop-up blocker for this site and click here


Edit : A lot of people are having problem implementing this code, may be because of the quote not displaying correctly. To make the life little easier, I have zipped up the code and can be dowloaded from HERE

You can Also Demo it at  http://rahmansaher.com/poper.html

Sphere: Related Content

Tagged with:  

17 Responses to Hiding Address Bar on Page Load Using JavaScript

  1. mhossain says:

    How to hide Menu Bar in Page Load Using JavaScript?
    Please help me…………

  2. ramana says:

    its not working in IE…..pls help me

  3. Rahmansaher says:

    Can you please tell me of what its not working and how are you placing you code. Make sure you replace the filename.htm to the filename of your pop up page…

  4. ben says:

    Dude. This is awesome! I think the problem other people were having is that the quote marks in your code need to be replaced with ‘ and “. For some reason, they are italicized in your code and will not work.

  5. spurti says:

    to hide menu bar make menubar=no

  6. Joshi Pattabhi says:

    hide address bar, standard buttons bar and other bars at the browser when the opening of the page useing java script.

  7. mac2ee says:

    try this, its working on my IE

    window.open(‘file.htm’,'null’,'width=800,height=600,toolbar=no,status=no,
    fullscreen=no,maximize=yes,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no’)

  8. Murali says:

    Hi this we can write simply as

    window.open(‘some.html?’,null,’toolbar=no,scrollbars=no,location=no,resizable =no,width=625,height=550,left=225,top=120′);

    Thanks
    Murali.P

  9. mena says:

    thaaaaaaaaaaaaanx

  10. veena says:

    How to hide menu bar, toolbars in opened browser wind in both IE and Firefox using javascript

  11. Thanxs a lot, HopeFully Help me…

  12. Keith says:

    thanks mate, you just saved me some minutes

  13. deepak says:

    but there is a problem i need to hide the address bar also how is possible help me

  14. david says:

    I am sorry, I copied the script and changed the filename before I pasted it on my web page which needs to be popped up. But it won’t work. Anyway when I browse the demon, still I see the filename and URL displayed on top of my firefox browser. Also at the bottom, whenever I roll over buttons, I can see the real time filenames display there. Please help. How can we totally make the URL disappear or at least just to show http://www.domainname.com Nothing should appear after dot com. Thanks.

  15. Piyush says:

    are dude..i want go popup page without address bar with this example of code i can see the address bar

  16. Piyush says:

    dude..i want to go next page without address bar throw javascript this example i can see address bar in popup window

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>