active 代表輸入法爲中文
inactive 代表輸入法爲英文
auto 代表打開輸入法 (默認)
disable 代表關閉輸入法
<INPUT οnfοcus=" this.style.imeMode='active' " />
<INPUT οnfοcus=" this.style.imeMode='inactive' " />
<INPUT οnfοcus=" this.style.imeMode='auto' " />
<INPUT οnfοcus=" this.style.imeMode='disabled' " />
禁止input 粘貼:
<input id=VC class="xinput" maxlength=4 size="5" onkeydown="fnKeyDown(event);" onfocus="this.select()" onclick="this.select()" onpaste="return false" ondrop="return false" ondragenter="return false;" ondragstart="return false" onkeypress="return keyDigt(event)" value="" />
οndragstart="return false" 禁止鼠標在網頁上拖動
ondragenter 當用戶拖曳對象到一個合法拖曳目標時在目標元素上觸發
οnpaste="return false" 禁止粘貼