Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamically change ie6 window title

Status
Not open for further replies.

homefish

MIS
May 23, 2003
11
0
0
GB
I would like to change the title of an ie6 window from an onClick event.
Code:
onClick="javascript:document.title='New Title';"
does not do the trick.

Yours,

fish.
 
You don't need the [tt]javascript:[/tt] prefix in [tt]onclick[/tt].


[tt]_______________________________________
Roger [pc2]
The Eileens are out there[/tt]
 
This works for me....

<input type=button value=&quot;title&quot; onClick=&quot;document.title='New Title';&quot;>


IE 6.0 on Windows Server 2000....


Please note I removed the word &quot;javascript&quot; from your onClick event.

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

 
Profuse apologies. I'm using a new emulator and the font doesn't visibly differentiate between colons and semicolons. I've just wasted my time and yours on a typo.

sorry ;-(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top