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