엔터치면 다음칸으로 이동.

<html>
<head>
    <title>다음칸</title>
<script language='javascript'>

   var is_submit = true;
   var _NEXT_FOCUS = ""; // 커서가 갈 곳..

   function check_form(){

       f = document.form;

      if(is_submit == true){
         return true;
      }else{
         f[_NEXT_FOCUS].focus();
         is_submit = true;
         return false;
     }
   }

   function next_input(next_focus){
     if(event.keyCode == 13){
          is_submit = false;
         _NEXT_FOCUS = next_focus;
      }
   }

</script>


<body>
입력폼 아무곳에서나 엔터키를 쳐보세요..

<form name='form'>
   <input type='text' size=20 name='put1' onKeyDown="next_input('put2');"><br>
   <input type='text' size=20 name='put2' onKeyDown="next_input('put3');"><br>
   <input type='text' size=20 name='put3' onKeyDown="next_input('put4');"><br>
   <input type='text' size=20 name='put4' onKeyDown="next_input('put5');"><br>
   <input type='text' size=20 name='put5' onKeyDown="next_input('put1');"><br>
   <input type='submit' value='보내기' onClick='return check_form();'>
</form>

</body>
</html>
[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]
|

댓글 3개

댓글을 작성하시려면 로그인이 필요합니다. 로그인

프로그램

+
제목 글쓴이 날짜 조회
16년 전 조회 1,742
16년 전 조회 3,594
16년 전 조회 4,432
16년 전 조회 3,100
16년 전 조회 2,345
16년 전 조회 2,429
16년 전 조회 2,678
16년 전 조회 2,162
16년 전 조회 5,505
16년 전 조회 3,358
16년 전 조회 1,350
16년 전 조회 1,696
16년 전 조회 5,067
16년 전 조회 2,301
16년 전 조회 3,408
16년 전 조회 2,640
16년 전 조회 1,558
16년 전 조회 5,354
16년 전 조회 2,466
16년 전 조회 5,960
16년 전 조회 1,937
16년 전 조회 4,011
16년 전 조회 3,026
16년 전 조회 2,211
16년 전 조회 2,232
16년 전 조회 4,403
16년 전 조회 3,292
16년 전 조회 2,827
16년 전 조회 2,966
16년 전 조회 2,081
16년 전 조회 1,766
16년 전 조회 1,678
16년 전 조회 1,399
16년 전 조회 1,669
16년 전 조회 1,900
16년 전 조회 1,590
16년 전 조회 4,839
16년 전 조회 3,821
16년 전 조회 1,789
16년 전 조회 1,532
16년 전 조회 2,271
16년 전 조회 4,513
16년 전 조회 3,539
16년 전 조회 2,578
16년 전 조회 4,336
16년 전 조회 3,202
16년 전 조회 1,352
16년 전 조회 1,369
16년 전 조회 2,033
16년 전 조회 1,880
16년 전 조회 2,558
16년 전 조회 2,228
16년 전 조회 1,359
16년 전 조회 4,377
16년 전 조회 1,475
16년 전 조회 1,780
16년 전 조회 2,201
16년 전 조회 3,836
16년 전 조회 2,732
16년 전 조회 1,485
16년 전 조회 4,010
16년 전 조회 1,393
16년 전 조회 1,576
16년 전 조회 1,241
16년 전 조회 1,714
16년 전 조회 1,613
16년 전 조회 1,628
16년 전 조회 1,417
16년 전 조회 2,174
16년 전 조회 1,813
16년 전 조회 1,969
16년 전 조회 2,178
16년 전 조회 1,466
16년 전 조회 2,302
16년 전 조회 2,253
16년 전 조회 4,530
16년 전 조회 1,290
16년 전 조회 1,044
16년 전 조회 2,003
16년 전 조회 1,973
16년 전 조회 1,504
16년 전 조회 2,032
16년 전 조회 2,269
16년 전 조회 1,385
16년 전 조회 1,725
16년 전 조회 1,919
16년 전 조회 1,006
16년 전 조회 1,686
16년 전 조회 1,404
16년 전 조회 1,902
16년 전 조회 1,320
16년 전 조회 2,201
16년 전 조회 1,885
16년 전 조회 5,867
16년 전 조회 1,912
16년 전 조회 3,678
16년 전 조회 1,465
16년 전 조회 1,751
16년 전 조회 2,068
16년 전 조회 2,604
🐛 버그신고