当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM title属性
The title property sets or returns the element's advisory title.
title属性可设置或返回元素的咨询标题
bodyObject.title=title |
The following example shows two methods on how to get the title attribute of the <body> element:
用两种方法来得到<body>元素的的title属性:
<html> <script type="text/javascript"> </body> |
Output:
输出
Body title: mytitle |
Return the title attribute of the <body> element
返回<body>元素里的title属性