473,770 Members | 5,299 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change title

How do you change the title within <title> and </title> by JS?
Thank you for your help.
M.K.
Jul 20 '05 #1
5 23796
the displayed document title can be changed with:
document.title= "your title here"
Jul 20 '05 #2
Thank you for your help but the following does not work:
<HTML>
<HEAD>
<title>ABC</title>
<SCRIPT LANGUAGE=JavaSc ript>
function start() {
document.title( "XYZ");
}
</SCRIPT>
</HEAD>
<BODY onload="start() ">
</BODY>
</HTML>

"JimMenees" <ji*******@aol. comNoSpam> wrote in message
news:20******** *************** ****@mb-m23.aol.com...
the displayed document title can be changed with:
document.title= "your title here"

Jul 20 '05 #3
Masao Kishore hu kiteb:
Thank you for your help but the following does not work:
<HTML>
<HEAD>
<title>ABC</title>
<SCRIPT LANGUAGE=JavaSc ript>
function start() {
document.title( "XYZ");

document.title= "your title here"


Spot the difference.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #4
Masao Kishore wrote on 24 Nov 2003:
Thank you for your help but the following does not work:
<HTML>
<HEAD>
<title>ABC</title>
<SCRIPT LANGUAGE=JavaSc ript>
That should read:

<SCRIPT type="text/javascript">

The type attribute is mandatory and is all you really need.
function start() {
document.title( "XYZ");


<snip>

document.title is a property, not a method. You assign to it - you
don't call it.

Mike

--
Michael Winter
M.******@blueyo nder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #5
While the city slept, Masao Kishore <on@request.com > feverishly typed:
How do you change the title within <title> and </title> by JS?
Thank you for your help.


As the others have said, document.title= "blah". Bear in mind, though, that
NN4 treats the document title as read-only, and will not let you change it.
Then again, NN4 is an abberation and the sooner it is no longer used, we can
all breath a sigh of relief ;-)

Cheers,
Nige

--
Nigel Moss.

Email address is not valid. ni***@nigenetDO G.org.uk. Take the dog out!
http://www.nigenet.org.uk | Boycott E$$O!! http://www.stopesso.com
In the land of the blind, the one-eyed man is very, very busy!
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
17306
by: Treetop | last post by:
is there a way to change the <title> tag from a parent window from a child window in frames?
34
4927
by: Andrew DeFaria | last post by:
I thought this would be fairly straight forward but apparently it's not. Given the following html file: <!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <title>Test</title> </head> <body> <form method="post" action="javascript:">
4
18478
by: Richard Trahan | last post by:
(This is a repost -- the original got tucked away into an old thread because I used the same Subject name.) I'm trying to change the document title to add an asterisk when the document becomes "dirty", as seen on editor applications. I use the code below. Venkman shows that everything looks as expected. The last line is for the debugger, which indicates that the title is changed, but it does not display.
4
13589
by: DerekM | last post by:
I have a database project that I created with several forms and reports. I would like to be able to declare a single title and be able to change the title on all the forms and reports by changing a single variable. I think this is possible, however I don't know Visual Basic very well. I created a module named DBcommon with the following statements in it: Option Compare Database Global Const DBname As String = "Title String"
6
5572
by: Guogang | last post by:
Hi, is there a way to change the page's title in code behind (C#)? I want to change this part: <HEAD> <TITLE> Can be changed dynamically. </TITLE> </HEAD> Thanks, Guogang
4
2973
by: ACaunter | last post by:
Hi there, I was wondering if there was a way to change the font color of the text in the title bar... by default the title bar is that dark blue faiding into light blue and it has white text... is it possible to change the color of that blue bar and also the color of the text, for all the people who visit the asp.net website... really i want to have the text all to be whatever color, even white, but then 1 character half way through the...
7
2183
by: Tim Rogers | last post by:
Hi folks, this is a resolution-detect script that I used on a site. As you can see it is designed to detect when the screen resolution falls below a certain level then load an alternative style sheet HOWEVER, is it possible to make a change to the code that will not only make it respond to windows with widths of less than 800 pixels but ALSO heights of less than 600 pixels. I'm a complete novice when it comes to .js so and help would...
3
4222
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change? ----------------------------------------------------------------------- When changing the status in an event (e.g. onmouseover) you should return true from the event. Also a number of browsers require a short delay before setting the status to overcome their default behaviour with the...
7
5757
by: imad.sabonji | last post by:
HI I am using Visual Studio.Net 2003 and using C# I would like to know how is it possible to change the Internet explorer window title? ie. i want to get rid of "Microsot Internet Explorer" that appears after my application name on the title bar and if possible, get rid of the IE logo at the start of the address bar.
5
3072
mikek12004
by: mikek12004 | last post by:
I have an xml written in a file. I want in the 1st line <code> <?xml version="1.0" encoding="iso-88-59-7"?> </code> to change the encoding to utf-8 any easy way to do that?
0
9591
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, 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...
0
9425
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,...
0
10053
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10001
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7415
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 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...
0
6676
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();...
1
3969
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
2
3573
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2816
bsmnconsultancy
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...

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.