让select option不要打开新网页?
bbzy 2010-04-02 08:54:33 我的一段程序,是在页面select 中选择后,ykSmall2Class打开一个新网页,这样就有2个网页了,再选择,就有3个了
现在是要求:只有一个新网页,即要关闭旧网页,请问怎么设置参数?
谢谢
javastr=javastr+"<select style=""BACKGROUND:"&KsBtBjColor&";color:"&KsBtColor&";width:160pt;font-size:12pt"" onchange=javascript:window.open(this.options[this.selectedIndex].value) name=""dh2"" >"
javastr=javastr+"<option>---学 习 资 料 ---</option>"
if not rs.eof then
do while not rs.eof
vchlink="ykSmall2Class.asp?BName="&rs(0)&"&SName="&rs(1)&"&Sort=学习资料"
javastr=javastr+"<option value="&vchLink&">"&rs("SmallClassName")&" </option>"
rs.MoveNext
loop
end If
rs.close
javastr=javastr+"</select>"