I want to hide the status bar and the address bar on page onload .I want it to work in IE 6.0.Mozilla and Netscape .Can anyone provide the sample .I don't want to open a new window.I want to hide it in the same window which means I don't want to go to any other html page .In the same page itself on click of a link ,i need to get the contents available there with no title bar and address bar .
I'm 99% sure that you can only control the appearance of those things if you open a new window with JS. Maybe you could open a new one the way you like and close the old one?
You could also try instructing the user to maximize the window (really maximize, ie, F11 on Win boxes), but that wouldn't hide tabs or the address bar, just shrink them.
with new window using window .open() using the window.open("#","_blank",'resizable=yes,top=0,left=0,width=1014,height=710');I am getting a new window .I dont want a new window to be opened.either i need to close the parent window and open the new window with the parent window contents,or the parent window with adress bar removed on load.Also if i use self.close () which window gets closed?
Someone please address why this is such a bad idea from a user and accessibility perspective ...
There is absolutely no business or technical reason to hide the address bar and status bar, and just keep in mind that anything you try can and will be bypassed anyway, by people in the know and with any number of tools such as local filtering proxies and certain browsers (Such as Opera and FireFox) that don't limit the user's experience to what the web page demands. And absolutely never rely on JavaScript for "security" (hiding sensitive data, blocking access to pages, etc) because it is never secure and can always be worked around.
Whoa - we can only speculate as to the reason <nidhulatm> asked this question.
If <nidhulatm> wants to provide an alternative to the MSgBox and/or alert() functions, is that a bad idea? I do not think so.
If <nidhulatm> is creating an application for an inTRAnet, then is this a bad idea - to keep the Poor User from wandering away from the application? I do not think so.
Far be it from me to generalize about usability and what the Poor User wants, or to blithely rely on a browser for security.
And while I, too, have been known to show strong feelings about certain things, I strive to use restraint when participating in a thread as to not be accused of hijacking.
I just think that this question needs to be investigated a little deeper - instead of "how do I do this," instead describe what the problem is or what the goal is and then find the best solution, because hiding the address and status bars may not be the best solution (it almost never is).