<script language="JScript">      </script>
      <input type=button value='A' onclick="t1.value+='A';t1.focus()"><input type=button value='B' onclick="t1.value+='B';t1.focus()">
      <input type=text id=t1>

解决方案 »

  1.   

    <input type=text style="ime-mode:inactive">ime-mode:
    SyntaxHTML { ime-mode: sMode } 
    Scripting object.style.imeMode [ = sMode ] Possible ValuessMode String that specifies one of the following values: auto IME is not affected. This is the same as not specifying the ime-mode attribute. 
    active All characters are entered through the IME. Users can still deactivate the IME. 
    inactive All characters are entered without IME. Users can still activate the IME. 
    disabled IME is completely disabled. Users cannot activate the IME if the control has focus. 
     
      

  2.   

    new ActiveXObject.("wscipt.shell").sendKeys("{键盘的键值}");
    这句话就可以发送键盘的所有命令了。用键盘的键值代理{}里的值。如
    new ActiveXObject.("wscipt.shell").sendKeys("{f11}");就是全屏命令
      

  3.   

    to adonis2222:
    这个对象可以发出键盘指令,但怎么转换成并发送中文字符呢?to xhbmj:
    Would you explain more clearly?
      

  4.   

    javascript在这方面是有缺陷的 , 他没有涉及到最底层的东西。。
    如果一定要实现的话,就得调用ActiveX组件之类的了 ,
    你的IE的安全级别也必须跟这降低才可以。。
      

  5.   

    你可以看看下面这个网站,繁体中文的。
    线上输入法,实现的方法是,使用自己的提供输入法码表,并在载入页面时,载如码表。
    然后用Javascript实现上字功能。
    http://input.foruto.com/fastime/simon/
      

  6.   

    你的要求好像用js不能完成,js无法遍历输入法。
    自己写一个activex控件吧