form onsubmit 사용하기
![]() ![]() 2010/10/31 02:33
|
<input type>으로
submit 이나
image 를 하는데..
자바스크립트로 check가 필요할때..
<script type="text/javascript"> return true;
<form name="f" action="./login_ok.jsp" method="post" onsubmit="return check();"> <INPUT type="image" src="../img/bt_login.gif" width="40" height="21" BORDER="0" tabindex=3/> </from> |
즉 false가 오는 값을 받았을경우는 다음으로 넘어가지 않는다.
'메모' 카테고리의 다른 글
in select 쿼리, 쿼리결과로 쿼리...펌 (0) | 2012.06.21 |
---|---|
form onsubmit에서 return true가 돼야 form 내용이 실행이 됨... (0) | 2012.06.19 |
제로보드 필드명...펌 (0) | 2012.06.18 |
제로보드 함수, 변수, 파일들...펌 (0) | 2012.06.17 |
nl2br() php함수...펌 (0) | 2012.06.15 |