document.title : title « Document « JavaScript Tutorial

JavaScript Tutorial
1. Language Basics
2. Operators
3. Statement
4. Development
5. Number Data Type
6. String
7. Function
8. Global
9. Math
10. Form
11. Array
12. Date
13. Dialogs
14. Document
15. Event
16. Location
17. Navigator
18. Screen
19. Window
20. History
21. HTML Tags
22. Style
23. DOM Node
24. Drag Drop
25. Object Oriented
26. Regular Expressions
27. XML
28. GUI Components
29. Dojo toolkit
30. jQuery
31. Animation
32. MS JScript
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
JavaScript Tutorial » Document » title 
14. 34. 1. document.title

The title property is a read-only string that specifies the title of the document.

This property is commonly set with the tag.</p></td></tr> <tr><td><SCRIPT LANGUAGE="JavaScript"> var newWindow function makeNewWindow() { newWindow = window.open("http://www.java2java.com/Tutorial/JavaScriptDemo/documenttitle.htm","","toolbar=yes,scrollbars=yes, resizable=yes,HEIGHT=700,WIDTH=800") } </SCRIPT> <FORM> <INPUT TYPE="button" VALUE="Try this example" onClick="makeNewWindow()"> </FORM> <table border="0" cellpadding="3" cellspacing="0" bgcolor="#ffffff"> <tr> <!-- start source code --> <td nowrap="nowrap" valign="top" align="left"> <div class="codeShade"><code> <font color="#000000"><</font><font color="#7f0055"><b>html</b></font><font color="#000000">></font><br/> <font color="#ffffff">    </font><font color="#000000"><head><title>My Web Page</title></head></font><br/> <font color="#ffffff">    </font><font color="#000000"><script></font><br/> <font color="#ffffff">    </font><font color="#000000"><!--</font><br/> <font color="#ffffff">    </font><font color="#000000">document.write</font><font color="#000000">(</font><font color="#2a00ff">"The title of this page is <i>"</font><font color="#000000">)</font><font color="#000000">;</font><br/> <font color="#ffffff">    </font><font color="#000000">document.write</font><font color="#000000">(</font><font color="#000000">document.title,</font><font color="#2a00ff">"</i>"</font><font color="#000000">)</font><font color="#000000">;</font><br/> <font color="#ffffff">    </font><font color="#000000">--></font><br/> <font color="#ffffff">    </font><font color="#000000"></script></font><br/> <font color="#ffffff">    </font><font color="#000000"></</font><font color="#7f0055"><b>html</b></font><font color="#000000">></font></code></div> </td> <!-- end source code --> </tr> </table> </td></tr> </table><TABLE border=0><TR><TD height=20></TD></TR></TABLE> <table cellpadding=0 cellspacing=0 width=800 border=0><tr><td colSpan=5>14. 34. title</td></tr><tr class=odd><td width=20></td><td width=100>14. 34. 1. </td><td align=left>document.title</td><td width=32></td><td width=200></td></tr><tr class=even><td width=20></td><td width=100>14. 34. 2. </td><td align=left><A href="Assignvaluetothedocumenttitleyoumusthavethetitletaginyourhtmldocument.htm">Assign value to the document title (you must have the title tag in your html document)</a></td><td width=32></td><td width=200></td></tr></table><TABLE border=0><TR><TD height=10></TD></TR></TABLE> <script type="text/javascript"><!-- google_ad_client="pub-1725451137117542";google_ad_width=728;google_ad_height=90;google_ad_format="728x90_as";google_ad_type="text_image";google_ad_channel="";google_color_border="ffffff";google_color_bg="ffffff";google_color_link="003399";google_color_text="000000";google_color_url="75a3ed"; //--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></td></tr></table></td></tr></table><center><TABLE border=0><TR align=left><TD><A href="/index.html">www.java2java.com</A> | <A href=../../../html/contact.htm>Contact Us</A></Td></TR><TR align=left><TD class=Templatetext>Copyright 2009 - 12 Demo Source and Support. All rights reserved.</TD></TR><TR align=left><TD>All other trademarks are property of their respective owners.</TD></TR></TABLE></center></BODY></HTML>