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
How to hide Menu Bar in Page Load Using JavaScript?
Please help me…………
its not working in IE…..pls help me
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…
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.
to hide menu bar make menubar=no
hide address bar, standard buttons bar and other bars at the browser when the opening of the page useing java script.
test bugaga
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’)
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
thaaaaaaaaaaaaanx
How to hide menu bar, toolbars in opened browser wind in both IE and Firefox using javascript
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……….
Thanxs a lot, HopeFully Help me…
i am using ie8. but my location bar not hide when i pass location=0 or no.
this code was work in ie7
thanks mate, you just saved me some minutes
but there is a problem i need to hide the address bar also how is possible help me
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.