O'Reilly logo

JavaScript® Programmer's Reference by Alexei White

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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+, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required