Article ID: 180153
Article Last Modified on 5/11/2006
<HTML>
<HEAD>
<SCRIPT>
function DoStuff()
{
txt.innerHTML = "<UL><LI>It worked</UL>";
}
</SCRIPT>
</HEAD>
<BODY>
<P>
<SPAN ID=txt>HTML<b> to be</b> replaced</SPAN>
</P>
<A HREF="javascript:DoStuff()">Click Me</A>
</BODY>
</HTML>
This use of the innerHTML property succeeds if you replace the <SPAN> tag pair with <DIV>.Keywords: kbinfo kbscript kbfaq KB180153