28,391
社区成员
发帖
与我相关
我的任务
分享
<input type="button" value="打开新窗口" onclick="window.open('test.asp')">
<form name="tp_form_2">
<input type="text" name="e_as_bdx_1" />
<input type="text" name="e_as_bdx_score_1" />
</form>
<%
dim myid,txt_checkbox,txt_score_bdx,strJS
myid="1"
txt_checkbox="txt_checkbox"
txt_score_bdx="txt_score_dbx"
strJS="<script language='javascript'>" & vbcrlf
strJS=strJS & "window.opener.document.tp_form_2.e_as_bdx_"&myid&".value='"& txt_checkbox &"';" & vbcrlf
strJS=strJS & "window.opener.document.tp_form_2.e_as_bdx_score_"&myid&".value='"& txt_score_bdx &"';" & vbcrlf
strJS=strJS & "window.close();" & vbcrlf
strJS=strJS & "</script>" & vbcrlf
response.write strJS
response.end
%>