Home > Technical > Hiding Address Bar on Page Load Using JavaScript

Hiding Address Bar on Page Load Using JavaScript

 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

Categories: Technical Tags:
  1. mhossain
    September 24th, 2006 at 15:10 | #1

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

  2. ramana
    September 29th, 2006 at 08:22 | #2

    its not working in IE…..pls help me

  3. October 4th, 2006 at 17:41 | #3

    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
    December 16th, 2006 at 14:13 | #4

    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
    February 17th, 2007 at 03:22 | #5

    to hide menu bar make menubar=no

  6. Joshi Pattabhi
    July 24th, 2007 at 04:06 | #6

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

  7. September 19th, 2007 at 09:18 | #7

    test bugaga

  8. mac2ee
    September 26th, 2007 at 22:31 | #8

    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’)

  9. Murali
    July 25th, 2008 at 03:22 | #9

    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

  10. mena
    October 3rd, 2008 at 20:32 | #10

    thaaaaaaaaaaaaanx

  11. veena
    October 20th, 2008 at 01:30 | #11

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

  12. akash
    October 31st, 2008 at 09:47 | #12

    Nice Code,
    But one problem is there,
    If you have hyper link in the page
    in which you had disabled the address bar.
    Now the problem is if i will right click on
    that link and open with new window at that time
    address bar is visible……….

  13. December 16th, 2008 at 23:50 | #13

    Thanxs a lot, HopeFully Help me…

  14. amit
    December 16th, 2009 at 14:31 | #14

    i am using ie8. but my location bar not hide when i pass location=0 or no.
    this code was work in ie7

  15. December 30th, 2009 at 21:17 | #15

    thanks mate, you just saved me some minutes

  16. deepak
    February 3rd, 2010 at 02:51 | #16

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

  17. david
    April 7th, 2010 at 13:54 | #17

    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.

  1. No trackbacks yet.