<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>
<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년 전
좋은소스감사합니다 !!!!
prokoko
16년 전
감사감사
15년 전
.
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5777 | 10년 전 | 440 | ||
| 5776 | 10년 전 | 294 | ||
| 5775 | 10년 전 | 224 | ||
| 5774 | 10년 전 | 900 | ||
| 5773 | 10년 전 | 259 | ||
| 5772 | 10년 전 | 288 | ||
| 5771 | 10년 전 | 402 | ||
| 5770 | 10년 전 | 349 | ||
| 5769 | 10년 전 | 205 | ||
| 5768 | 10년 전 | 263 | ||
| 5767 | 10년 전 | 1138 | ||
| 5766 | 10년 전 | 367 | ||
| 5765 | 10년 전 | 451 | ||
| 5764 | 10년 전 | 414 | ||
| 5763 | 10년 전 | 365 | ||
| 5762 | 10년 전 | 219 | ||
| 5761 | 10년 전 | 358 | ||
| 5760 | 10년 전 | 409 | ||
| 5759 | 10년 전 | 830 | ||
| 5758 | 10년 전 | 306 | ||
| 5757 | 10년 전 | 378 | ||
| 5756 | 10년 전 | 342 | ||
| 5755 | 10년 전 | 361 | ||
| 5754 | 10년 전 | 238 | ||
| 5753 | 10년 전 | 415 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기