11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

name String containing the value of the name attribute. Defined for Anchor in<br />

traditional models. In some browsers this is a read-only value. (IE3+, N4+, MOZ,<br />

DOM1)<br />

nameProp String holding the filename portion of the URL in the href. (IE5+)<br />

pathname String holding the path and filename portion of the URL in the href<br />

(including the leading slash). Defined for Link in traditional models. (IE3+, N2+, MOZ)<br />

port String holding the port number portion of the URL in the href. Defined for Link in<br />

traditional models. (IE3+, N2+, MOZ)<br />

protocol String holding the protocol portion of the URL in the href. Defined for Link in<br />

traditional models. (IE3+, N2+, MOZ)<br />

protocolLong A read-only string holding the full name of the protocol used in the URL<br />

in the href. Defined for Link in traditional models. (IE4+)<br />

rel String holding the value of the rel property of the element. Used to specify the<br />

relationship between documents, but currently ignored by most browsers. (IE4+,<br />

MOZ/N6+, DOM1)<br />

rev String holding the value of the rel property of the element. Used to specify the<br />

relationship between documents. <strong>The</strong> use of this attribute is currently ignored by most<br />

browsers. (IE4+, MOZ/N6+, DOM1)<br />

search String holding the portion of the URL in the href following the question mark<br />

(a.k.a. the search string). Defined for Link in traditional models. (IE3+, N2+, MOZ/N6+)<br />

shape String defining the shape of the object. (IE6+, MOZ/N6+, DOM1)<br />

tabIndex Numeric value indicating the tab order for the object. (IE4+, MOZ/N6+,<br />

DOM1)<br />

target Specifies the target window for a hypertext source link referencing frames.<br />

(IE3+, N2+, MOZ, DOM1)<br />

text A read-only string specifying the text enclosed by the tags. Defined for<br />

Anchor in traditional models. More appropriately accessed via DOM methods. (N4+)<br />

type Specifies the media type in the form of a MIME type for the link target. (IE6+,<br />

MOZ/N6+, DOM1)<br />

urn Defines a URN for a target document. (IE4+)<br />

x <strong>The</strong> read-only x coordinate of an Anchor, in pixels, relative to the left edge of the<br />

document. (N4)<br />

y <strong>The</strong> read-only y coordinate of an Anchor, in pixels, relative to the top edge of the<br />

document. (N4)<br />

Methods<br />

This object has the methods listed in the Generic HTML Element object found at the beginning<br />

of this appendix, in addition to the following:<br />

blur() Removes focus from the element. (IE4+, MOZ/N6+, DOM1)<br />

handleEvent(event) Causes the Event instance event to be processed by the<br />

appropriate handler of the object. (N4)<br />

focus() Gives the element focus. (IE4+, MOZ/N6+, DOM1)<br />

Support<br />

Supported in Internet Explorer 3+, Netscape 2+, Mozilla, DOM1.<br />

abbr, HTMLElement (Document Object)<br />

This object corresponds to an (abbreviation) tag in the document. Access to this object<br />

is achieved through standard DOM methods such as document.getElementById().<br />

Properties<br />

This object only has the properties defined by the Generic HTML Element object found at the<br />

beginning of this section.<br />

Methods<br />

This object only has the methods listed in the Generic HTML Element object found at the<br />

beginning of this section.<br />

Support

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!