jasonhuibers
Programmer
My code below simply opens a window. How can I modify the code below to post the data by submitting the form rather than just opening the window?
<form name="Form1" method="POST">
<SCRIPT LANGUAGE="JavaScript">
var w=500; /* popup window width*/
var h=440; /* popup window height*/
var l=(screen.width-w)/2; /*this centers horizontally*/
var t=(screen.height-h)/2; /*this centers vertically*/
var url="Test111.asp";
var features="left="+l+",top="+t+",width="+w+",height="+h+",scrollbars=auto";
function popItUp() {
window.open(url,"",features);
}
</script>
<select name="cboEvent" onchange="popItUp()" align=center width="200" size="12" style="font-family: courier new;WIDTH: 565px; HEIGHT: 98px;font-size: x-small">
<option value="Item1">
</select>
<form name="Form1" method="POST">
<SCRIPT LANGUAGE="JavaScript">
var w=500; /* popup window width*/
var h=440; /* popup window height*/
var l=(screen.width-w)/2; /*this centers horizontally*/
var t=(screen.height-h)/2; /*this centers vertically*/
var url="Test111.asp";
var features="left="+l+",top="+t+",width="+w+",height="+h+",scrollbars=auto";
function popItUp() {
window.open(url,"",features);
}
</script>
<select name="cboEvent" onchange="popItUp()" align=center width="200" size="12" style="font-family: courier new;WIDTH: 565px; HEIGHT: 98px;font-size: x-small">
<option value="Item1">
</select>