document.title : title « Document « JavaScript Tutorial






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

This property is commonly set with the tag.</p><pre><html> <head><title>My Web Page</title></head> <script> <!-- document.write(<font color='#2a00ff'>"The title of this page is <i>"</font>); document.write(document.title,<font color='#2a00ff'>"</i>"</font>); --> </script> </html> </pre><br/><br/><br/><br/><script type="text/javascript"><!-- google_ad_client="pub-1130008796007602";google_ad_width=300;google_ad_height=250;google_ad_format="300x250_as";google_ad_type="text_image";google_ad_channel="";google_color_border="ffffff";google_color_bg="FFFFFF";google_color_link="0077cc";google_color_url="0077cc";google_color_text="000000"; //--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><br/><br/><br/><br/><table class='table'><tr><td colSpan=5>14.34.title</td></tr><tr class=odd><td width=20></td><td width=50>14.34.1.</td><td align=left>document.title</td></tr><tr class=even><td width=20></td><td width=50>14.34.2.</td><td align=left><A href="/Tutorial/JavaScript/0280__Document/Assignvaluetothedocumenttitleyoumusthavethetitletaginyourhtmldocument.htm">Assign value to the document title (you must have the title tag in your html document)</a></td></tr></table></div></div><footer><p class='pull-right'><a href='http://www.java2s.com/'>java2s.com</a>  | © Demo Source and Support. All rights reserved.</p></footer></div></body></html>