现在改成这样
function msg(str,button,title)
response.Write("<script language=vbscript>ans=msgbox ("&chr(34)&str&chr(34)&","&button&","&chr(34)&title&chr(34)&")</script>")
end function
<%
call msg ("成功",1,"拼了")
%>
<script language="vbscript">
if ans=vbOK then
<%response.Write("iloveyou")%>
else
<%response.Write("ihateyou")%>
end if
</script>
现在能显示弹出对话框,但是单击确定或者是取消后还是没有反映,什么都没有输出
