Random thoughts about anything that takes my interest....
Wednesday, 27 October 2010
New javascript document
A small javascript code fragment for creating a new document containing part of an existing document var newDoc = document.implementation.createDocument("", "", null); var sd = newDoc.importNode(content, true); newDoc.appendChild(sd);
No comments:
Post a Comment