innerHTML,innerTEXT都是对一个obj的property,
可参见:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/innerhtml.asp
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/innertext.asp
想重复使用,可分配不同的id
<html>
<SCRIPT LANGUAGE="JScript">
function faster()
{
// Start processing
var str="";
str += "<SPAN>2222222222222</SPAN>";
divUpdate.innerHTML = str;
str = "<SPAN>44444444444444</SPAN>";
divUpdateo.innerHTML = str;
// End processing
}
</SCRIPT>
<body>
<BUTTON ONCLICK="faster()" >innerHTML</BUTTON>
<DIV ID="divUpdate" class="updatedDiv">111111111111111</DIV>
<DIV ID="divUpdateo" class="updatedDiv">333333333333333</DIV>
</body>
</html>