Html & Script

form action을 post방식으로 popup띄울수 있나

페이지 정보

본문

unction form_submit(){
chk = window.open('about:blank','네임값','width=300,height=400,scrollbars=yes');
if(chk != null){
폼네임.target='네임값';
폼네임.action='보낼문서'; //action은 요기에
폼네임.submit();
}
}
<form name=폼네임 method=post>
<input type=button onclick='form_submit();'>
</form>

관련자료

등록된 댓글이 없습니다.
Today's proverb
오래 살지 못할 것이라는 예상이 나로 하여금 더 열심히 살게 하고, 더 많은 일을 하도록 했다. (스티븐 호킹)