Area

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax

Core client-side JavaScript object.

Description

An instance of the Area object is created with each occurrence of the <area> tag within an HTML document. In HTML documents, the <area> tag is used in conjunction with the <map> tag to define an area within a picture that will act as a hyperlink. Because the Area object is a hyperlink, it is equivalent to the Link object in JavaScript. In fact, the Area object is stored in the same array where Link objects are stored. Table 7.3 lists the properties, methods, and event handlers used by the Area object.

Table 7.3. Properties, Methods, and Event Handlers Used by the Area Object
Type Item Description
Properties hash The portion ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.