posted 22 years ago
All things are possible with DOM . . . You can use the document.createElement('tagtype') method to create a new tag. Then you just set all its attributes and append it as a child to the parent node to make it appear in the page.
But this is all a lot of work. Does the tag have to be brand new? Maybe the best way to simulate this is to write the tag in the page, and set its style to "display:none." Then you can change the style to "display:block" or "display:inline" as appropriate and the element will appear on the page.