For the complete documentation index, see llms.txt. This page is also available as Markdown.

createNode

The method createNode() creates the HTML element specified by tagName. Within the arguments you may also include attributes and the text included.

document.createNode(TagName,AttributeTable,Text)

Examples

document.createNode("p",{id="id",style="color:red"},"This is a paragraph element!")
document.createNode("frame",{["frame-data"]="E_E",style="background-color:red"},"<p>Paragraph within the frame</p>")

Last updated