anchor

Introduction

The anchors property is an array containing references to all the named Anchor objects in the current document.

Form

document.anchors["anchorID"];

Use

Example

document.anchors["anchorID"];

On running the above code, the following output is obtained.