zumpoof
asked on
Getting a DHTML node as an html string
I've created a 'div' using DHTML. Is it possible to see what it looks like as a string of HTML. So something like this:
var d=document.createElement(' DIV');
d.style.border='1px solid';
d.innerHTML='Hi there';
Converted into:
'<DIV STYLE="border:1px solid">Hi there</DIV>'
var d=document.createElement('
d.style.border='1px solid';
d.innerHTML='Hi there';
Converted into:
'<DIV STYLE="border:1px solid">Hi there</DIV>'
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
How to get outerHTML in IE and Mozilla (Netscape)
https://www.experts-exchange.com/questions/21221807/How-to-get-outerHTML-in-IE-and-Mozilla-Netscape.html