diff options
Diffstat (limited to 'itjs/it.js')
-rw-r--r-- | itjs/it.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -157,6 +157,15 @@ function it_get_iframe_document(iframe) return iframe.contentWindow ? iframe.contentWindow.document : iframe.contentDocument; } +/* Create a new dom element and append to doc */ +function it_create_element(doc, type, init) +{ + var e = document.createElement(type); + it_set(e, init); + doc.appendChild(e); + return e; +} + /** * Copy attributes from src to dst in a recursive manner. * @param dst Destination object which gets attributes |