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

<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,756
16년 전 조회 3,611
16년 전 조회 4,446
16년 전 조회 3,111
16년 전 조회 2,357
16년 전 조회 2,447
16년 전 조회 2,690
16년 전 조회 2,180
16년 전 조회 5,518
16년 전 조회 3,376
16년 전 조회 1,368
16년 전 조회 1,709
16년 전 조회 5,080
16년 전 조회 2,319
16년 전 조회 3,419
16년 전 조회 2,658
16년 전 조회 1,573
16년 전 조회 5,366
16년 전 조회 2,481
16년 전 조회 5,975
16년 전 조회 1,951
16년 전 조회 4,023
16년 전 조회 3,041
16년 전 조회 2,226
16년 전 조회 2,245
16년 전 조회 4,409
16년 전 조회 3,308
16년 전 조회 2,843
16년 전 조회 2,982
16년 전 조회 2,098
16년 전 조회 1,779
16년 전 조회 1,693
16년 전 조회 1,413
16년 전 조회 1,684
16년 전 조회 1,915
16년 전 조회 1,610
16년 전 조회 4,850
16년 전 조회 3,838
16년 전 조회 1,803
16년 전 조회 1,547
16년 전 조회 2,291
16년 전 조회 4,524
16년 전 조회 3,558
16년 전 조회 2,591
16년 전 조회 4,347
16년 전 조회 3,214
16년 전 조회 1,366
16년 전 조회 1,384
16년 전 조회 2,045
16년 전 조회 1,893
16년 전 조회 2,575
16년 전 조회 2,241
16년 전 조회 1,380
16년 전 조회 4,394
16년 전 조회 1,489
16년 전 조회 1,792
16년 전 조회 2,219
16년 전 조회 3,852
16년 전 조회 2,746
16년 전 조회 1,504
16년 전 조회 4,024
16년 전 조회 1,405
16년 전 조회 1,588
16년 전 조회 1,255
16년 전 조회 1,729
16년 전 조회 1,629
16년 전 조회 1,641
16년 전 조회 1,434
16년 전 조회 2,188
16년 전 조회 1,828
16년 전 조회 1,982
16년 전 조회 2,192
16년 전 조회 1,479
16년 전 조회 2,316
16년 전 조회 2,266
16년 전 조회 4,541
16년 전 조회 1,308
16년 전 조회 1,059
16년 전 조회 2,017
16년 전 조회 1,990
16년 전 조회 1,521
16년 전 조회 2,049
16년 전 조회 2,285
16년 전 조회 1,400
16년 전 조회 1,743
16년 전 조회 1,931
16년 전 조회 1,023
16년 전 조회 1,704
16년 전 조회 1,415
16년 전 조회 1,916
16년 전 조회 1,334
16년 전 조회 2,215
16년 전 조회 1,903
16년 전 조회 5,880
16년 전 조회 1,927
16년 전 조회 3,693
16년 전 조회 1,477
16년 전 조회 1,765
16년 전 조회 2,080
16년 전 조회 2,621