Click to See Complete Forum and Search --> : Title bar changer


zaphy
01-13-2003, 10:25 AM
Where can I get a Javascript that will change the title in an internet browser of a page when frames are being used?:p :confused:

BestZest
01-13-2003, 10:47 AM
i don't know if this will work but you could try:
parent.document.title="Your text here"

BestZest

Zach Elfers
01-13-2003, 11:10 AM
I don't think it's document.title. That would refer to an element named title. I think it should be window.title

Jona
01-13-2003, 03:22 PM
I have taken privelidge of testing this script. BestZest is right. Here is a small page I came up with to illustrate:


<html><title>lalalal</title>
<body>
<input type='button' onclick="parent.document.title='Your text here'" value="anananananananan">
</body></html>