:: Documentation >>

setTag

Sets the HTML tag name.

null

Syntax

obj.setTag(name);

Parameters

name (sring) - HTML tag

Example

var obj = new AW.System.HTML;
obj.setTag("input");
document.write(obj);

Remarks

There are several shortcuts defined for frequently used tags - see AW.HTML Namespace.

The argument for setTag() method can be an empty string - in this case there will not be corresponding element in DOM tree, but the child elements will be rendered as usual.

See also

getTag() method

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5