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" <jimmenees@aol. comNoSpam> wrote in message
news:2003112320 1227.16444.0000 0600@mb-m23.aol.com...[color=blue]
> the displayed document title can be changed with:
> document.title= "your title here"[/color]
Masao Kishore hu kiteb:
[color=blue]
> 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");[/color]
[color=blue][color=green]
>> document.title= "your title here"[/color][/color]
Spot the difference.
--
--
Fabian
Visit my website often and for long periods!
Masao Kishore wrote on 24 Nov 2003:
[color=blue]
> Thank you for your help but the following does not work:
> <HTML>
> <HEAD>
> <title>ABC</title>
> <SCRIPT LANGUAGE=JavaSc ript>[/color]
That should read:
<SCRIPT type="text/javascript">
The type attribute is mandatory and is all you really need.
[color=blue]
> function start() {
> document.title( "XYZ");[/color]
<snip>
document.title is a property, not a method. You assign to it - you
don't call it.
While the city slept, Masao Kishore <on@request.com > feverishly typed:
[color=blue]
> How do you change the title within <title> and </title> by JS?
> Thank you for your help.[/color]
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 ;-)
Comment