469,366 Members | 2,396 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

javascript to disable the title bar, status bar, and address bar of a window

I want to disable the title bar, status bar and address bar of a
window, but I couldn't find the syntax. I tried the following but not
working. any ideas??

window.document.statusbar.enable = false;
window.document.titlebar.enable = false;
window.document.addressbar.enable = false;

<html>
<title>hey</title>
<script type="text/javascript">
function changetitle()
{
alert(window.document.title);
window.document.title = "heyhey";
window.document.statusbar.enable = false;
alert(window.document.title);
}
</script>
<body onload="changetitle()">
</body>
</html>
Jul 23 '05 #1
6 65717
Matt wrote:
I want to disable the title bar, status bar and address bar of a
window, but I couldn't find the syntax. I tried the following but not
working. any ideas??


Yes. Stop trying to hide something JS has no control over (unless it
opens a new window).
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
Matt wrote:
I want to disable the title bar, status bar and address bar of a
window, but I couldn't find the syntax. I tried the following but not
working. any ideas??

window.document.statusbar.enable = false;
window.document.titlebar.enable = false;
window.document.addressbar.enable = false;


Remove ".document" and replace "enable" with "visible" to make it work
in Netscape 6.x (IIRC) and some Mozilla/5.0 nightly builds. Except of
the title bar, which only the window manager has control over.
"addressbar" must be "locationbar" then. Using signed scripts you may
request the UniversalBrowserWrite privilege to modify the properties in
recent Mozilla/5.0, too.
PointedEars
--
Come on down to the store, you can buy some more and more and more and more
(Sonic Youth)
Jul 23 '05 #3
> Yes. Stop trying to hide something JS has no control over (unless it
opens a new window).

so do you know some workarounds to my problem? thanks
Jul 23 '05 #4
Lee
Matt said:
Yes. Stop trying to hide something JS has no control over (unless it
opens a new window).

so do you know some workarounds to my problem? thanks


You haven't told us what the problem is.
You've asked how to do some things that you shouldn't be trying to do.
What problem are you trying to solve?

Jul 23 '05 #5

"Thomas 'PointedEars' Lahn" <Po*********@web.de> wrote in message news:10*****************@PointedEars.de...
Matt wrote:
I want to disable the title bar, status bar and address bar of a
window, but I couldn't find the syntax. I tried the following but not
working. any ideas??

window.document.statusbar.enable = false;
window.document.titlebar.enable = false;
window.document.addressbar.enable = false;


Remove ".document" and replace "enable" with "visible" to make it work
in Netscape 6.x (IIRC) and some Mozilla/5.0 nightly builds. Except of
the title bar, which only the window manager has control over.
"addressbar" must be "locationbar" then. Using signed scripts you may
request the UniversalBrowserWrite privilege to modify the properties in
recent Mozilla/5.0, too.


PointedEars
--
Come on down to the store, you can buy some more and more and more and more
(Sonic Youth)


It's always a pleasure to read a response which answers the question. Even if
it is not exhaustive. It's much better then, "don't."

GH
Jul 23 '05 #6
George Hester wrote:
"Thomas 'PointedEars' Lahn" <Po*********@web.de> wrote in message
news:10*****************@PointedEars.de...


Please do not write so-called "attribution novels". The name of the
precursor's author is sufficient to follow the discussion. The e-mail
address in the From header is often of little use as it is used as a
spam(mer) trap (could be a tarpit and the like; as opposed to one in
the Reply-To header). The message ID of the precursor is contained in
the References header of the followup. Two or more lines interfere
with flow of reading, especially with several quotation levels.
Remove ".document" and replace "enable" with "visible" to make it work
in Netscape 6.x (IIRC) and some Mozilla/5.0 nightly builds. Except of
the title bar, which only the window manager has control over.
"addressbar" must be "locationbar" then. Using signed scripts you may
request the UniversalBrowserWrite privilege to modify the properties in
recent Mozilla/5.0, too.
[...]


It's always a pleasure to read a response which answers the question.
Even if it is not exhaustive. It's much better then, "don't."


Actually, if you read it thoroughly, it *was* a "don't" :)
PointedEars

P.S.: Please trim your quotes (to the parts you are referring to).
--
"95% of success is showing up."
-- Mark Twain
Jul 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by mg | last post: by
5 posts views Thread by Andrea A | last post: by
2 posts views Thread by dmitrey | last post: by
1 post views Thread by lavsaxena | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.