473,372 Members | 1,310 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,372 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 66077
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??
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.