[Javascript] Setting title of web page

Skip Evans skip at bigskypenguin.com
Sun May 11 19:04:37 CDT 2008


Hey all,

At the suggestion of another list member this was 
the simplest solution:

document.title="new title";

Adam Fahy wrote:
> Skip Evans wrote:
>> So anyway, I can get the title by tag name:
>>
>> var title=document.getElementsByTagName('title');
>>
>> But I can't find the right arguments to pass to
>>
>> setAttribute('?????','New Page Title');
> 
> Try:
> 
> document.getElementsByTagName('title')[0].text = "New Title"
> 
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
> 

-- 
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison, WI 53703
608-250-2720
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL, AJAX & DHTML development framework.
http://phpenguin.bigskypenguin.com/



More information about the Javascript mailing list