473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 66082
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
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
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
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
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
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
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
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.