Get the id of a link:
The result of x will be:
The id property sets or returns the value of the id attribute of a link.
The id attribute specifies the id of an anchor, and can be used to create a bookmark inside a document.
The id property is supported in all major browsers.
Return the id property:
Set the id property:
|id||Specifies the id of a link|
|Return Value:||A String, representing the id of the link|
Change the id of a link:
A demonstration of how to change the id of an anchor to create a bookmark inside a document:
HTML reference: HTML id attribute