Appendix F. Document Object Reference
This section provides detailed API references to the browser DOM (Document Object Model) including its many element types and special features.
Area Object Reference
An Area
object is an HTML tag defining an image map. An image map is an image with specially defined clickable zones. Area tags are always nested inside map
tags.
Properties
alt — Sets or retrieves a text alternative to the graphic. (Support: CH1+, FF1+, IE4+, NN6+, O6+, SF1+) Returns: String, Read/Write.
coords — When an image map is used with a hyperlink, the coordinates reflect where the click took place. (Support: CH1+, FF1+, IE4+, NN6+, O6+, SF1+) Returns: String, Read/Write.
hash — The part of the URL that follows the symbol, including the symbol. (Support: CH1+, FF1+, IE3+, NN2+, O3+, SF1+) Returns: String, Read/Write.
host — The host name and port number. (Support: CH1+, FF1+, IE3+, NN2+, O3+, SF1+) Returns: String, Read/Write.
hostname — The host name (without the port number). (Support: CH1+, FF1+, IE3+, NN2+, O3+, SF1+) Returns: String, Read/Write.
href — The entire URL of the reference. (Support: CH1+, FF1+, IE3+, NN2+, O3+, SF1+) Returns: String, Read/Write.
noHref — Sets or gets whether clicks in this region cause action. (Support: CH1+, FF1+, IE4+, NN6+, O6+, SF1+) Returns: Boolean, Read/Write.
pathname — The path (relative to the host). (Support: CH1+, FF1+, IE3+, NN2+, O3+, SF1+) Returns: String, Read/Write.
port — The port number of the URL. (Support: CH1+, FF1+, IE3+, NN2+, ...
Get JavaScript® Programmer's Reference 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.