Area.add() (Method)

Add a new element to the Area object that describes the image map.

Availability:

JScript - 3.0
Internet Explorer - 4.0
JavaScript syntax:IEmyArea.add(anObject)
IEmyArea.add(anObject, anIndex)
Argument list:anObjectA new link object to add
anIndexA position in the collection to add the new item

Image maps can be modified from the scripting interface. You might find this useful if you present some new information and want to add a button to dismiss it. It is possible to avoid an unnecessary screen redraw and image load by adding an item to an image map collection.