createElement()

This method is used to create, in memory, and instance of the object associted with a tag passed as a parameter to the method, and is used to create new AREA and OPTION elements, assigning property values as needed.

syntax:

createElement(tagName)

This method is used with the following:

document