The DOM standard at level 1 requires that the title property of an HTML object should contain the text from the <TITLE> HTML tag in the <HEAD> block of the document. At least, this is the implication, because it refers the reader to the HTML specification, which defines that <TITLE> is only legal inside <HEAD> blocks. We can't really say this is part of the DOM specification, which unfortunately makes it ambiguous.
Netscape makes this available as the document.title property, as does MSIE. However, MSIE does support this property as a member of the HTML object even though it is not mentioned in the Microsoft documentation.
In Netscape, the title property of an HTML object exists but is empty, hence it cannot be guaranteed to be available in Netscape 6.0.
See also: | Document.title |
Prev | Home | Next |
HTML object | Up | HTML.version |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |