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