document.title property

  • Thread starter Thread starter Elias Politakis
  • Start date Start date
E

Elias Politakis

document.title according to MSDN is read only but IE allows you to set it
using script.

However, under unexplained circumstances that have to do with adding a
number of CSS links, it stops working for modal dialogs.

If you move the script code that sets the document.title after the <HTML>
tag and before the <HEAD> element, it always works...

I suspect it has to do with the DHTML object model that when title is set
programmatically, it injects a <TITLE> element but this is just a
speculation.

Is this a bug ?
Should we be using the document.title for setting the title of a document ?
 
I suspect it has to do with the DHTML object model that
when title is set
programmatically, it injects a <TITLE> element but this is just a
speculation.
The first thing to point out is that DHTML is not a W3C
standard and it has nothing to do with DOM! On the other
hand DOM (Document Object Model) is guaranteed to work
correctly only in a well-formed XHTML documents. The
problem of building DOM for HTML documents still persists
as there are some problems with parsing such documents.
And as for document.title... I have absolutely NO
problems with this problem and even if you think there is
some kind of bug - just report it through support
Microsoft page.
 
Back
Top