CreateElement

 

 

Purpose

Creates a JavaScript HTML element and attaches it to its parent.

Syntax

 

Operation

type is the type of element.

parentNode is the parent element.

properties is an object holding a collection of properties to be set up.

Remarks

Return value:

The new element.

Example

proiv.createElement("DIV", document.body, {id:’abc’,style;{color:’red’}});

 

Comment on this topic

Topic ID: 800056