[求助]如何设置变量与如何调用VBSCRIPT子程序
以下是显示列表内容的程序,请问应该如何才能让function ShowSelect()把列表内容放入数组变量kskm(3),在kskm(1)中,是"语文yw",kskm(2)中是"数学sx",kskm(3)中是"英语yy".请问如何才能在按"确定"按钮后在执行function ShowSelect()后马上调用VBSCRIPT子程序jk()我可以在这子程序中用数组变量kskm(3)在服务器上建立数据表.<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>显示列表内容</title>
<script language="javascript">
function ShowSelect(){
var SelectObj = document.getElementById("s1");
var SelectStr = "";
for(i=0;i<SelectObj.options.length;i++){
SelectStr += "选项["+ SelectObj.options[i].text +"]的值是 "+ SelectObj.options[i].value +"<BR>";
}
document.getElementById("div1").innerHTML = SelectStr;
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<select name="select3" size="3" id="s1">
<option value="yw">语文</option>
<option value="sx">数学</option>
<option value="yy">英语</option>
</select>
<input name="submit1" type="submit" onclick="ShowSelect()" value="确定" />
</form>
<p> </p>
<p><br>
</p>
<div id="div1"></div>
</body>
</html>