insert_tag (Function)
insert_tag (tagname[, dest[, noprompt]])
This function inserts an element into the destination specified by dest.
|
If you have applied an alias map to the document, tagname can be an alias, as well as a real name.
|
• tagname — An expression specifying the element to insert.
• dest — Optional. A document identifier or a window name. It can be one of the window types returned by the window function (for example, edit, cmd, helpwin1). If dest is not specified, the current document is used.
This function returns one (1) on success and zero (0) on failure.
Example:
insert_tag("emphasis", window_doc("edit"),1)
Related Topics