IDs for HTML objects

To help identify objects when scripting, you can give them names or IDs. For example, instead of referring to each member of the array of link objects (anchor elements) on a page by using the default document object identifier (document.A with a numeric index), you could name the links to identify them at a glance:

<A ID=beginnerguidelink
HREF="http://www.finance.com/info/index.html">
Beginner's Guide to Finance</A>

Assigning an ID You can assign an ID in the HTML editor using the HTML element's properties dialog box. You can also type the ID attribute into the document directly in Source view.