What is the anchors property?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the anchors property?
Rating:
The anchors property belongs to the document object. An anchor refers to a name defined in the <a> tag. The anchors property refers to a particular place in a document where an anchor is defined. The hash defined in the URL also refers to an anchor in a document that can be located by the hash property of the location object. The anchors property is an array of anchors defined in a document and each anchor can be accessed by their position in the document.
An anchor can be created by using the following syntax:
The following is the syntax of using the anchors property:
Rating:
Was this information helpful?
Other articles
- What is the links object?
- What is concatenation?
- What are constructors?
- What is the checked property?
- Functions, Global Functions, and Custom Objects.