How can I extract the html code for a DOM object generated by javascript?

teensoncams04

New Member
I am generating a svg object in a html document using java script. Something like this: \[code\]mySvg = document.createElementNS("http://www.w3.org/2000/svg", "svg");myPath = document.createElementNS("http://www.w3.org/2000/svg", "path");mySvg.appendChild(myPath);\[/code\]Is there a javascript command to extract what the resulting html code would be?i.e. \[code\]"<svg>...<path>...</path>...</svg>"\[/code\]I want to then save this part as a string variable. Thanks, Wendy
 
Back
Top