Dev./Javascript2 JavaScript Event KeyCode Test Page JavaScript Event KeyCode Test Page Input: onKeyDown onKeyPress onKeyUp event.keyCode event.charCode event.which Notable Gotchas Firefox and onKeyDown vs. onKeyPressed Firefox and keyCode vs. charCode Enter key and onKeyPress on Firefox vs. IE 2013. 5. 29. 자바스크립트 유효성 검사 대문자 변환 함수 function ToUpper(arg) { var str1 = "abcdefghijklmnopqrstuvwxyz"; var str2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; return alterString(arg,str1,str2); } // 대 --> 소문자 변환 함수 function ToLower(arg){ var str1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; var str2 = "abcdefghijklmnopqrstuvwxyz"; return alterString(arg,str1,str2); } // 반각 문자를 전각문자로 function convert2ByteChar(x_char) { var x_2byteChar = ""; //컨버트된 문자 .. 2013. 5. 21. 이전 1 다음