What is the links object?
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 links object?
Rating:
The links object is a property of the document object. The links object is an array of the hyperlinks present in a document. These hyperlinks can be accessed by their positions in the document. These positions are called indexes. The index of the first hyperlink is zero and the index of the last hyperlink is one less than the total number of hyperlinks present in the document.
The syntax of creating a hyperlink is as follows:
The syntaxes of using the links tag are as follows:
document.links["linkname"]
document.linkname
Rating:
Was this information helpful?
Other articles
- What is the join method?
- What is the focus() method?
- What is a textarea object?
- Note for creating multiple sets of radio button.
- How to use the title property?
