编辑器加载中...
/// help set the text of the element, based on the browser.
function setTextofElement(textControl, textValue) {
// innerText only supported in IE
if (document.body.innerText) {
textControl.innerText = textValue;
}
else // other browsers use textContent
{
textControl.textContent = textValue;
}
}