:: Home >>

setTag

Sets the HTML tag name.

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

No comments yet.
Comments will appear on this page and in the main forum.

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