小白教程
所有教程
关于
Search
172.70.100.140
172.70.100.140
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Prop doc title”的源代码
本页内容
上一节:
Prop_document_stricterrorchecking
下一节:
Prop_doc_url
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:document.title}}[[Category:dom obj document|42]] = HTML DOM title 属性 = [[dom obj document|Document 对象]] == 定义和用法 == title 属性可返回当前文档的标题( HTML title 元素中的文本)。 == 语法 == <pre> document.title</pre> == 浏览器支持 == 所有主要浏览器都支持 title 属性 返回当前文档的标题: <sample title="" desc="" lang="html" hererun="1"> <html> <head> <title>My title</title> </head> <body> 文档的标题为: <script> document.write(document.title); </script> </body> </html> </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> </head> <body> 文档的标题为: <script> document.write(document.title); </script> </body> </html> </run> [[dom obj document|Document 对象]]
返回至“
Prop doc title
”。
上一节:
Prop_document_stricterrorchecking
下一节:
Prop_doc_url