//怎样插入一个字符到NameText,要能启动NameText的onkeyup事件。
//怎样插入一个字符到NameText,要能启动NameText的onkeyup事件。<br>
<input type="text" id="NameText" onkeyup="alert(this.value)"><button onclick="Insert()">用代码模拟键盘输入</button>
<script language="javascript">
//
function Insert()
{
//怎样插入一个字符到NameText,要能启动NameText的onkeyup事件。
}
</script>