About This Product
FontsMadeEasy.com
 
Search This Database:
| Over 5000 Free Fonts | Tutorials | Javascript Forum | Other Javascript Resources | Cheat Sheet
Tutorial archive
General Questions
Javascript 1.2
Navigation
Numbers
Strings
Object Model
Reference Manual
Dialog
Windows
Frames
Forms
Images
Mouse Events
Colors
File Access
Control Status Bar
Dates and Time
Cookies
Client Information
Bookmarklets


Window title

Question: How do I change another window's title, that is, the content of title bar at the top of the window?

Answer: To change another window's title, your script can write to that window a string beginning with the following code:

'<html><head><title>Your new title here</title></head>'
Note that rewriting the other window's content will erase everything previously displayed in that window. Therefore, if you want the window's content to stay, then, after changing the window title, you'll have to write the old content to that window once again. (If your script does not know what the old content was, you'd rather not change the window title either!)

For more information on writing script-generated content to another window, see Writing to a Window.

BackBack