<HTML><HEAD></HEAD><SCRIPT LANGUAGE = "JavaScript">var strPreviewTextfunction popup()
{
strPreviewText = "leon"
previewForm.aPreviewText.style.fontWeight="bold"
previewForm.aPreviewText.innerHTML=strPreviewText;
}
</SCRIPT><BODY><FORM NAME = "previewForm" ><H1>预览</H1><TEXTAREA name= "aPreviewText" ROWS="5" COLS="80" WRAP="soft" onFocus = "popup()"></TEXTAREA></FORM></BODY></HTML>--------
文本框中不能加<b>,你需要的是一个文本编器吧?
http://fason.nease.net/code/js/other/htmleditor.htm