w3pop.com :: ÍøÂçѧԺ :: 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.w3pop.com">Visit W3pop.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
ÆÀÂÛ (0)
All