input 에서 submit 클릭시 팝업창으로 띄우고 싶습니다. 정보
input 에서 submit 클릭시 팝업창으로 띄우고 싶습니다.본문
아래 소스에서 왜 에러가 나는지 봐주시면 감사드리겠습니다 ;;
input 에서 submit 클릭시 팝업창으로 띄우고 싶습니다. 사이즈 조절까지 가능하게요..
<script>
//<![CDATA[
function winOpen(){
window.open("pop.html","pop","width=300,height=300,scrollbars=yes");
var f = document.form1;
f.target "pop";
f.submit();
}
//]]>
</script>
<form name="form1" action="이동주소" method="post">
<input type="txt" name="a">
<input type="button" value="다음화면" style="cursor:hand" onclick="winOpen()">
</form>
input 에서 submit 클릭시 팝업창으로 띄우고 싶습니다. 사이즈 조절까지 가능하게요..
<script>
//<![CDATA[
function winOpen(){
window.open("pop.html","pop","width=300,height=300,scrollbars=yes");
var f = document.form1;
f.target "pop";
f.submit();
}
//]]>
</script>
<form name="form1" action="이동주소" method="post">
<input type="txt" name="a">
<input type="button" value="다음화면" style="cursor:hand" onclick="winOpen()">
</form>
댓글 전체
f.target "pop";
f.target = "pop";
f.target = "pop";
감사합니다 ^^