Javascript Reference
Categories: A

javascript A Description

@March 15, 2008, 1:22 a.m.
a Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

  

The a object reflects the a element, regardless of whether the element is set up to be an anchor, link, or both. Early versions of Navigator and Internet Explorer treat this object only as a member of the links[] and/or anchors[] arrays of a document. Starting with IE 4 and Netscape 6, you can access the object through supported element object reference syntax (e.g., the document.all[] collection for IE or document.getElementById() for IE 5 and later and Netscape 6).

 
HTML Equivalent
 
<a>
 
Object Model Reference
 
[window.]document.links[i]
[window.]document.anchors[i]
[window.]document.getElementById("elementID")
 
Object-Specific Properties
 
charset coords dataFld dataFormatAs dataSrc hash
host hostname href hreflang Methods mimeType
name nameProp pathname port protocol protocolLong
rev search shape target text type
urn
 
Object-Specific Methods

None.

 
Object-Specific Event Handler Properties

Anchor-only a objects have no event handlers in Navigator through Version 4.

 
Handler Firefox/Netscape/NN IE Chrome/Safari/DOM
onblur n/a 4 n/a
onclick 2 3 2
ondblclick 4 4 n/a
onfocus n/a 4 n/a
onhelp n/a 4 n/a
onmousedown 4 4 2
onmousemove 6 4 2
onmouseout 3 4 2
onmouseover 2 3 2
onmouseup 4 4 2

Powered by Linode.