July 1998
Intermediate to advanced
1456 pages
65h 5m
English
createElement( ) — NN n/a IE 4 DOM n/a
createElement(”tagName“)
Generates in memory an instance of an object associated with the tag
passed as a parameter to the method. Use this method to create new
AREA and OPTION elements. You
may then assign property values to fill out the features of the
element, such as the src property of an
image object. Any new element of these types must
then be added to their collections (with the add( ) method).
Object reference.
tagName
A string of the uppercase tag name of the desired new element:
document.createElement("OPTION").
Read now
Unlock full access