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

<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,738
16년 전 조회 3,592
16년 전 조회 4,429
16년 전 조회 3,099
16년 전 조회 2,343
16년 전 조회 2,425
16년 전 조회 2,673
16년 전 조회 2,162
16년 전 조회 5,504
16년 전 조회 3,355
16년 전 조회 1,347
16년 전 조회 1,694
16년 전 조회 5,064
16년 전 조회 2,299
16년 전 조회 3,405
16년 전 조회 2,638
16년 전 조회 1,557
16년 전 조회 5,351
16년 전 조회 2,465
16년 전 조회 5,958
16년 전 조회 1,933
16년 전 조회 4,009
16년 전 조회 3,025
16년 전 조회 2,209
16년 전 조회 2,229
16년 전 조회 4,403
16년 전 조회 3,289
16년 전 조회 2,827
16년 전 조회 2,962
16년 전 조회 2,078
16년 전 조회 1,765
16년 전 조회 1,674
16년 전 조회 1,398
16년 전 조회 1,668
16년 전 조회 1,897
16년 전 조회 1,587
16년 전 조회 4,837
16년 전 조회 3,819
16년 전 조회 1,785
16년 전 조회 1,528
16년 전 조회 2,267
16년 전 조회 4,511
16년 전 조회 3,537
16년 전 조회 2,575
16년 전 조회 4,332
16년 전 조회 3,201
16년 전 조회 1,349
16년 전 조회 1,367
16년 전 조회 2,031
16년 전 조회 1,879
16년 전 조회 2,554
16년 전 조회 2,226
16년 전 조회 1,357
16년 전 조회 4,377
16년 전 조회 1,472
16년 전 조회 1,776
16년 전 조회 2,198
16년 전 조회 3,832
16년 전 조회 2,729
16년 전 조회 1,484
16년 전 조회 4,007
16년 전 조회 1,390
16년 전 조회 1,574
16년 전 조회 1,237
16년 전 조회 1,711
16년 전 조회 1,609
16년 전 조회 1,626
16년 전 조회 1,417
16년 전 조회 2,170
16년 전 조회 1,812
16년 전 조회 1,965
16년 전 조회 2,176
16년 전 조회 1,464
16년 전 조회 2,299
16년 전 조회 2,249
16년 전 조회 4,525
16년 전 조회 1,286
16년 전 조회 1,043
16년 전 조회 2,002
16년 전 조회 1,970
16년 전 조회 1,503
16년 전 조회 2,030
16년 전 조회 2,268
16년 전 조회 1,384
16년 전 조회 1,723
16년 전 조회 1,915
16년 전 조회 1,000
16년 전 조회 1,684
16년 전 조회 1,401
16년 전 조회 1,902
16년 전 조회 1,317
16년 전 조회 2,199
16년 전 조회 1,885
16년 전 조회 5,863
16년 전 조회 1,911
16년 전 조회 3,677
16년 전 조회 1,460
16년 전 조회 1,750
16년 전 조회 2,064
16년 전 조회 2,603
🐛 버그신고