Kor
02-02-2005, 12:08 PM
I am to modify the <title> in about 100 pages. The Head section of each page is in fact a sigle php include. Unfortunately I have to have different titles for groups of pages.
I tryed to change dinamilically the <title> using:
document.documentElement.getElementsByTagName('title')[0].data;
or
document.documentElement.getElementsByTagName('title')[0].appendChild(document.createTextNode('test'));
or
document.documentElement.getElementsByTagName('title')[0].innerHTML
with no effect
The assignement is located inside the body. Nomatter it is a simple assignment or called onload in afunction, it looks like the head's tag can not be changed dinamically. Any suggestion?
I tryed to change dinamilically the <title> using:
document.documentElement.getElementsByTagName('title')[0].data;
or
document.documentElement.getElementsByTagName('title')[0].appendChild(document.createTextNode('test'));
or
document.documentElement.getElementsByTagName('title')[0].innerHTML
with no effect
The assignement is located inside the body. Nomatter it is a simple assignment or called onload in afunction, it looks like the head's tag can not be changed dinamically. Any suggestion?