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>

관련자료

댓글 0
등록된 댓글이 없습니다.
Today's proverb
현명해지는 길이요? 그거요. 간단한 일이죠. 실수하고 또 실수하고 다시 또 실수하더라도, 조금만 덜, 다시 조금만 덜, 다시 또 조금만 덜 실수해 나가면 되는 거죠. <파이어트 하인의 (Grooks 1) 중에서>