 |
|
|  |
|
 |
21년 전 |
<SCRIPT LANGUAGE="JavaScript">
function 함수이름() {
if(!document.폼이름.폼항목.value) {alert("폼항목을 입력하지 않았습니다"); 폼이름.폼항목.focus(); return false;}
return true; }
</script>
마지막으로 <form 과 > 사이에 아래를 삽입해 주시면 됩니다.
<form name=폼이름 onSubmit='return 함수이름()'>
<input name=폼항목 type=text>
</form>
|
|
추천 : 403 |
추천
목록
|
|
|  |
|