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.enab le = false;
window.document .titlebar.enabl e = false;
window.document .addressbar.ena ble = false;
<html>
<title>hey</title>
<script type="text/javascript">
function changetitle()
{
alert(window.do cument.title);
window.document .title = "heyhey";
window.document .statusbar.enab le = false;
alert(window.do cument.title);
}
</script>
<body onload="changet itle()">
</body>
</html> 6 66122
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.javas cript FAQ - http://jibbering.com/faq
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.enab le = false; window.document .titlebar.enabl e = false; window.document .addressbar.ena ble = 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 "locationba r" then. Using signed scripts you may
request the UniversalBrowse rWrite 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)
> 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
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?
"Thomas 'PointedEars' Lahn" <Po*********@we b.de> wrote in message news:10******** *********@Point edEars.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.enab le = false; window.document .titlebar.enabl e = false; window.document .addressbar.ena ble = 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 "locationba r" then. Using signed scripts you may request the UniversalBrowse rWrite 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
George Hester wrote: "Thomas 'PointedEars' Lahn" <Po*********@we b.de> wrote in message news:10******** *********@Point edEars.de...
Please do not write so-called "attributio n 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 "locationba r" then. Using signed scripts you may request the UniversalBrowse rWrite 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 to another application and back
between each field that data is entered.
I have tried this database on pc's that have office 2000 SP1a and
SP3.
How do investigate what is causing this calculating issue and how do I
resolve it?
|
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:
window.opener.document.getElementById("TextBox1").Enabled
= false;
What am I doing wrong? Could you provide a solution?
|
by: jm |
last post by:
I have a parent window:
<script language="javascript">
function doSearch() {
result=showModalDialog("searchmni.aspx?lastname=smith");
alert(result);
}
</script>
|
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 = false;
window.document.titlebar.enable = false;
window.document.addressbar.enable = false;
<html>
<title>hey</title>
|
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 the
function was getting called. Am I missing something obvious? It works
in IE just fine.
<head>
<title>Status Bar Test</title>
<script language="JavaScript">
| |
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");
setTimeout("alert(a.document.title);",5000);
</SCRIPT>
without success:
|
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.
|
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 front end and SQL Server as backend.
The ideas in my mind so far are:
• Disable the F11 key
• Disable “Unhind” function on “Window” on Menu bar, so users can’t go to Window-> Unhind to reopen the database window.
• Disable the SHIFT key – I’ve...
|
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.
Thanks in Advance
|
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??
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |