HTML DOM name Property
Complete Anchor Object Reference
Definition and Usage
The name property sets or returns the name of a link.
Syntax
Example
The following example returns the name of a link:
<html>
<body>
<p><a id="myAnchor" name="myAnchor"
href="http://www.w3schools.com">Visit W3Schools.com</a></p>
<script type="text/javascript">
x=document.getElementById("myAnchor");
document.write(x.name);
</script>
</body>
</html>
|
Try-It-Yourself Demos
Get the
name of a link
Complete Anchor Object Reference
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
And more…
Try before you buy with a free fully functional 30-day trial
Download today
|