PP.createElement

Syntax

createElement(parent: HTMLElement, className: String, tagName: String);

Parameters

parent. Parent element.

className. Name of CSS class for created element.

tagName. Tag name. This is an optional parameter, be default it is set to div.

Description

The createElement method creates a DOM element with specified tag.

Comments

This method returns an HTMLElement value.

Example

The example of use is given in the PP.create.

See also:

PP