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

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

Post by jrefactor » Sun, 22 Aug 2004 05:51:51


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>
 
 
 

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

Post by Randy Web » Sun, 22 Aug 2004 08:08:16


Yes. Stop trying to hide something JS has no control over (unless it
opens a new window).


--
Randy
comp.lang.javascript FAQ - http://www.yqcomputer.com/

 
 
 

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

Post by Thomas 'Po » Sun, 22 Aug 2004 20:23:05


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)
 
 
 

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

Post by jrefactor » Mon, 23 Aug 2004 00:03:59

> Yes. Stop trying to hide something JS has no control over (unless it


so do you know some workarounds to my problem? thanks
 
 
 

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

Post by Lee » Mon, 23 Aug 2004 00:25:52

Matt said:

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?
 
 
 

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

Post by George Hes » Mon, 23 Aug 2004 01:01:14


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
 
 
 

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

Post by Thomas 'Po » Mon, 23 Aug 2004 01:27:21


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.


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
 
 
 

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

Post by jrefactor » Tue, 24 Aug 2004 05:30:56


Unfortunately, I only want to make it work in IE, not Netscape. I
tried the following but it didn't work in IE.

window.statusbar.visible = false;
 
 
 

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

Post by Thomas 'Po » Tue, 24 Aug 2004 09:24:03


Please do not write attribution novels.

^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Since you appear to have problems with reading, I have marked what is
important here.


PointedEars
--
Go play leapfrog with a herd of unicorns!
 
 
 

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

Post by kael » Tue, 24 Aug 2004 22:23:24

In article < XXXX@XXXXX.COM >,
XXXX@XXXXX.COM enlightened us with...


If this is for an intranet application, CD app, or something else you know
your users for, use an HTA. (html application)
IE / Windows only.
This gives you MUCH more control over the interface. It is not suitable for
internet use, however.

HTH

--