显示文档的标题显示文档的标题<html><head><title>My title</title></head> <body>该文档的标题是:<script type="text/javascript">document.write(document.title)</script></body> </html>