Ime-Mode.

발자 이야기/Html 2008/10/15 21:05

텍스트 박스에 숫자만을 입력 받고 싶을때 보통 event로 눌린 keycode로 판별하여 처리를 합니다.

하지만 한영키를 토글하여 한글로 맞추고 입력을 하게 되면 한글은 입력이 된다는... 이때 사용할 수 있는 방법중 하나로 Ime-Mode라는 것이 있습니다. (FF의 경우 3.0부터 지원한다고 봤던 것으로 기억이...)

Syntax :
HTML { ime-mode : sMode }
Scripting [ sMode = ] object.style.imeMode

Possible Values

sMode String that specifies or receives one of the following values. auto Default.

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.

auto : 한/영 토글 가능.
active : 한글 기본, 한/영 토글 가능.
inactive : 영문 기본, 한/영 토글 가능
disabled : 영문 기본, 한/영 토글 불가능.(영문과  숫자만 입력 가능하며 한글은 불가능)

 
 
 
태그 : HTML,ime-mode
트랙백 주소 :: http://youngminc.com/699/trackback/
옵션
댓글 달기