![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,799
Rep Power: 5
![]() |
Changing The <title> Tags
Is there a way to dynamically change the <title> tags in javascript?
I've tried looking on google, and one mailing list said it wasn't possible. I couldn't find anything else helpful either. Am I able to grab it with getelementbyID and change the attribute innerHTML or something? It's also a necessity, since the title will need to be changing without the page reloading. It sounds like the only way. Thanks for any help. :o |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 122
Rep Power: 3
![]() |
document.title should work fine. As in:
function changeTitle(s)
{
document.title=s;
}
...
changeTitle('some new title');
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet" |
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,799
Rep Power: 5
![]() |
Worked beautifully. Thanks.
I'll assume it's compatible across all standard browsers enabling javascript? Woo! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing Console colour dynamically | Xenon | C | 5 | Nov 13th, 2005 9:47 AM |
| Id3 tags of mp3 files, can't get it to work please help | mleonid | C++ | 14 | Aug 21st, 2005 9:22 PM |
| Making Tables With <div> Tags | You Like Java? | HTML / XHTML / CSS | 8 | Mar 22nd, 2005 12:41 PM |
| changing domains/ranges | guest1234 | C++ | 2 | Feb 15th, 2005 12:38 AM |
| image tags | Monkey_features | Community Announcements and Feedback | 13 | Feb 14th, 2005 8:56 PM |