<script type="text/javascript">
function OnSubmitForm()
{
if(document.pressed == 'Insert')
{
document.myform.action ="insert.html";
}
else if(document.pressed == 'Update')
{
document.myform.action ="update.html";
}
return true;
}
</script>
<form name="myform" onsubmit="return onsubmitform();">
<input type="submit" name="operation" onclick="document.pressed=this.value" value="insert" />
<input type="submit" name="operation" onclick="document.pressed=this.value" value="update" />
</form>
function OnSubmitForm()
{
if(document.pressed == 'Insert')
{
document.myform.action ="insert.html";
}
else if(document.pressed == 'Update')
{
document.myform.action ="update.html";
}
return true;
}
</script>
<form name="myform" onsubmit="return onsubmitform();">
<input type="submit" name="operation" onclick="document.pressed=this.value" value="insert" />
<input type="submit" name="operation" onclick="document.pressed=this.value" value="update" />
</form>
댓글 7개
14년 전
중복게시물로 싱고합니다... ㅋ
... 잠깐 사이에 그 전게시물이 삭제되었더러구요 .... 싱고보류 ~~~
... 잠깐 사이에 그 전게시물이 삭제되었더러구요 .... 싱고보류 ~~~
방황하는중년
14년 전
리자님 이러시면 곤란하심 -_- 신고 할까용 -_-??
헉 신고 할려니 활동지수 1점 부족 ㅠ.ㅠ
그래도 1회 추천은 제가 했다는거.... --ㅋ
헉 신고 할려니 활동지수 1점 부족 ㅠ.ㅠ
그래도 1회 추천은 제가 했다는거.... --ㅋ
14년 전
그 전 게시물이 지워졌습니다.
이러면 또 링크 오작동 발령이군요 .... 에효 ....
이러면 또 링크 오작동 발령이군요 .... 에효 ....
14년 전
오신김에 추천이나 해주세요. ㅎㅎ
방황하는중년
14년 전
이미 추천은 해드려서 더 추천은 불가 합니다 --ㅋ
대신 리자님 코드 날로 먹기 모드 ^^;;
-----------------------------------------------------------
<script>
function rtcheckfrm() {
var frm = document.mms80form;
if (frm.yayak[1].checked){
frm.action = "./Upload2";
} else {
frm.action = "./Upload";
}
return true;
document.form.submit();
}
</script>
<FORM name=mms80form enctype="multipart/form-data" method="post" onSubmit="return rtcheckfrm();">
필요폼 내용들.....
<input type="radio" name="yayak" value="0" checked> 즉시
<input type="radio" name="yayak" value="1"> 예약
<input type='image' src="img/sms/mobil_send.gif" name='Send' title="전송할려면 눌러유~~~">
</FORM>
이렇게 하시면 1개의 submit 문으로 -_-;;; radjo 버턴으로 대처하실수 있을듯 합니다..
대신 리자님 코드 날로 먹기 모드 ^^;;
-----------------------------------------------------------
<script>
function rtcheckfrm() {
var frm = document.mms80form;
if (frm.yayak[1].checked){
frm.action = "./Upload2";
} else {
frm.action = "./Upload";
}
return true;
document.form.submit();
}
</script>
<FORM name=mms80form enctype="multipart/form-data" method="post" onSubmit="return rtcheckfrm();">
필요폼 내용들.....
<input type="radio" name="yayak" value="0" checked> 즉시
<input type="radio" name="yayak" value="1"> 예약
<input type='image' src="img/sms/mobil_send.gif" name='Send' title="전송할려면 눌러유~~~">
</FORM>
이렇게 하시면 1개의 submit 문으로 -_-;;; radjo 버턴으로 대처하실수 있을듯 합니다..
14년 전
얼마 전에 올라온 글의 방법이 웹 접근성에서 훨씬 좋습니다.
http://sir.co.kr/bbs/board.php?bo_table=tiptech&wr_id=11961
http://sir.co.kr/bbs/board.php?bo_table=tiptech&wr_id=11961
14년 전
스크립트 방식까지 나와 있으면 완전 강추입니다.
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5977 | 9년 전 | 176 | ||
| 5976 | 9년 전 | 224 | ||
| 5975 | 9년 전 | 251 | ||
| 5974 | 9년 전 | 351 | ||
| 5973 | 9년 전 | 387 | ||
| 5972 | 9년 전 | 234 | ||
| 5971 | 9년 전 | 265 | ||
| 5970 | 9년 전 | 230 | ||
| 5969 | 9년 전 | 150 | ||
| 5968 | 9년 전 | 156 | ||
| 5967 | 9년 전 | 339 | ||
| 5966 | 9년 전 | 200 | ||
| 5965 | 9년 전 | 188 | ||
| 5964 | 9년 전 | 189 | ||
| 5963 | 9년 전 | 270 | ||
| 5962 | 9년 전 | 331 | ||
| 5961 | 9년 전 | 242 | ||
| 5960 | 9년 전 | 281 | ||
| 5959 | 9년 전 | 217 | ||
| 5958 |
|
9년 전 | 485 | |
| 5957 | 9년 전 | 316 | ||
| 5956 | 9년 전 | 283 | ||
| 5955 | 9년 전 | 293 | ||
| 5954 | 9년 전 | 204 | ||
| 5953 | 9년 전 | 348 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기