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

<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,737
16년 전 조회 3,588
16년 전 조회 4,426
16년 전 조회 3,095
16년 전 조회 2,342
16년 전 조회 2,421
16년 전 조회 2,672
16년 전 조회 2,159
16년 전 조회 5,501
16년 전 조회 3,352
16년 전 조회 1,345
16년 전 조회 1,690
16년 전 조회 5,061
16년 전 조회 2,297
16년 전 조회 3,401
16년 전 조회 2,635
16년 전 조회 1,554
16년 전 조회 5,347
16년 전 조회 2,463
16년 전 조회 5,954
16년 전 조회 1,929
16년 전 조회 4,006
16년 전 조회 3,021
16년 전 조회 2,208
16년 전 조회 2,225
16년 전 조회 4,403
16년 전 조회 3,285
16년 전 조회 2,822
16년 전 조회 2,954
16년 전 조회 2,075
16년 전 조회 1,761
16년 전 조회 1,670
16년 전 조회 1,393
16년 전 조회 1,665
16년 전 조회 1,894
16년 전 조회 1,586
16년 전 조회 4,835
16년 전 조회 3,817
16년 전 조회 1,782
16년 전 조회 1,526
16년 전 조회 2,261
16년 전 조회 4,509
16년 전 조회 3,537
16년 전 조회 2,571
16년 전 조회 4,329
16년 전 조회 3,198
16년 전 조회 1,346
16년 전 조회 1,366
16년 전 조회 2,027
16년 전 조회 1,875
16년 전 조회 2,552
16년 전 조회 2,224
16년 전 조회 1,355
16년 전 조회 4,375
16년 전 조회 1,468
16년 전 조회 1,774
16년 전 조회 2,195
16년 전 조회 3,828
16년 전 조회 2,724
16년 전 조회 1,483
16년 전 조회 4,005
16년 전 조회 1,388
16년 전 조회 1,572
16년 전 조회 1,236
16년 전 조회 1,710
16년 전 조회 1,606
16년 전 조회 1,624
16년 전 조회 1,415
16년 전 조회 2,168
16년 전 조회 1,810
16년 전 조회 1,963
16년 전 조회 2,173
16년 전 조회 1,461
16년 전 조회 2,295
16년 전 조회 2,246
16년 전 조회 4,524
16년 전 조회 1,284
16년 전 조회 1,040
16년 전 조회 1,999
16년 전 조회 1,969
16년 전 조회 1,502
16년 전 조회 2,029
16년 전 조회 2,264
16년 전 조회 1,383
16년 전 조회 1,722
16년 전 조회 1,911
16년 전 조회 997
16년 전 조회 1,682
16년 전 조회 1,398
16년 전 조회 1,900
16년 전 조회 1,313
16년 전 조회 2,198
16년 전 조회 1,882
16년 전 조회 5,862
16년 전 조회 1,906
16년 전 조회 3,676
16년 전 조회 1,458
16년 전 조회 1,747
16년 전 조회 2,061
16년 전 조회 2,601
🐛 버그신고