473,508 Members | 2,202 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 66086
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1771
by: robin9876 | last post by:
In an Access 2000 database on some forms 'Calculating...' is continuously displayed in the status bar window and the text of the control is automatically selected. The only workaround is switching...
1
1627
by: mg | last post by:
I want to disable a TextBox in the WebForm that opens a popup Webform ... from the popup WebForm. The following javascript code doesn't work: ...
2
4294
by: jm | last post by:
I have a parent window: <script language="javascript"> function doSearch() { result=showModalDialog("searchmni.aspx?lastname=smith"); alert(result); } </script>
0
3945
by: Matt | last post by:
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 =...
1
1897
by: topmind | last post by:
I couldn't get the status bar to work in Netscape 8.1. The JavaScript settings are set to allow it, but it just ain't no work. Here is a Plain Jane test script. I added an Alert box to make sure...
5
1847
by: Andrea A | last post by:
Hi All. I need to read the TITLE of a window popup opened by a my page. I'm testing this code <SCRIPT> var a = window.open("http://www.pippo.com", "a");...
2
7541
by: dmitrey | last post by:
hi all, does anyone know howto set title of whole window? (I mean not just area above plot but string in the same line where buttons 'close', 'iconify', 'fullscreen' are situated) Thx, D.
2
8443
by: emlimeng | last post by:
Hi everyone It is maybe a questions asked many times. I am trying to limite users' access to Database Windows to improve security. I am working on an Access Data Project in Access 2000 format as...
1
2828
by: lavsaxena | last post by:
I need to capture the title of a window in perl. The window in my case will be a telnet window. I need to capture its title to know the details of system to which telnet session is established. ...
2
1729
by: gamazone | last post by:
hello every one i want to put a javascript code in the address bar of the gmail home page ,and press Go button , is it possible using some coding??
0
7227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7331
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7391
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7501
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5056
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1564
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.