当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM name属性
The name property sets or returns the name of a link.
name属性可设置或返回链接的name
anchorObject.name=name |
The following example returns the name of a link:
举例将返回链接的name:
<html> <body> <p><a id="myAnchor" name="myAnchor" href="http://www.ruanchen.com">Visit ruanchen.com</a></p> <script type="text/javascript"> x=document.getElementById("myAnchor"); document.write(x.name); </script> </body> </html> |
Get the name of a link
得到连接的name
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
吃惊 | 欠揍 | 支持 | 很棒 | 一般 | 搞笑 | 扯淡 | 不解 |