jQuery in Action, 2nd edition*
The moose likes HTML, CSS and JavaScript and the fly likes hide the browser address and tool bar? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "hide the browser address and tool bar?" Watch "hide the browser address and tool bar?" New topic
Author

hide the browser address and tool bar?

reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
When a user open a browser and type in some domain name in the address bar, when the website is loaded, is it possible to hide the browser address bar and tool bar?

Thanks.


SCJA, SCJP5.0, SCBCD, SCWCD
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
No you can not chnage the browser when JavaScript does not open the window.

Eric
reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
I found that we can change the setting in Netscape browser family. By doing:

netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
window.toolbar.visible = false;
....
netscape.security.PrivilegeManager.revertPrivilege("UniversalBrowserWrite");


If not using window.open(), is there really no way to do that in IE?
Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
yes we have done this.

edward
edward_durai@hotmail.com


Thank You<br />Edward
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
When you hide a browser bar that means this:
BAD APPLICATION DESIGN

You should not build a browser around an application. You should build the application around the browser.

People have a browser for a reason. To look at web pages. It saves our preferences, or history, or favorites, etc. Now when you mess that up, you piss me off as a user. Open a new window if you think you need to do this.

What is the main reason? More space to show stuff. Bad coding making the back button kill your application? Afraid a person can see the URL?

I have a future blog written on this stuff since it is a pet peeve when developers do this.

Eric
Oscar Gonzalez
Ranch Hand

Joined: Mar 28, 2006
Posts: 63
I agree, there are too many ways where the user can go back or change the address, Imagine you coudl do that in both IE and Nestcape (The two borowser mos people have), there will be persons with other browsers and also you have to get rid of all the posiobilities of the user with extensions and toolbars that will get you to a ton of posibilities, so I wouldn't recommend doing that, instead try to change the design.

reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
I should explain it a bit more detailed. I wanna hide those tool/address bars because I'm building the webpages for a system to remotely access it. Those uesrs will be told ahead that tool/address bars will be hiden if the webpages is built in that way.

I want to let users to see pages like a panel. ajax is also applied inside, which would bring inconvenience if parts of page content is refleshed and no history is in back/forward button.

For these reasons, Im thinking to do it without tool/address bars.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hide the browser address and tool bar?
 
Similar Threads
How can i hide the address bar?
Addressbar hiding
How to hide the address bar when using t:popup
IE problem with img tag calling stored procedure
Encoding, decoding problem