JavaScript 表單另開視窗要設定視窗屬性
Java Script 表單另開視窗要設定視窗屬性
<script>
function sendout(){
window.open('','myForm','...視窗屬性...');
form1.action='...';
form1.submit();
}
</script>
<form id="form1" name="form1" method="post" target="myForm">
</form>
<form id="form2" name="form2" method="post" target="myForm" onSubmit="window.open('','myForm','...視窗屬性...');">
</form>
<script>
function sendout(){
window.open('','myForm','...視窗屬性...');
form1.action='...';
form1.submit();
}
</script>
<form id="form1" name="form1" method="post" target="myForm">
</form>
<form id="form2" name="form2" method="post" target="myForm" onSubmit="window.open('','myForm','...視窗屬性...');">
</form>
留言
張貼留言