用showmodaldailog方式就可以实现
返回时
var sFeatures ="dialogHeight:0px;dialogWidth:0px;status:no;help:0;";
var rVal=window.showModalDialog(strPage,"", sFeatures);
response.Write("<script language='javascript'>alert('已放入购物车!');this.location.href='javascript:history.go(-1);'</script>")
else
if not rs.eof then
dim j
j=cint(rs("cs"))
rs("cs")=j+request.Form("count")
rs.update
response.Write("<script language='javascript'>alert('已放入购物车!');this.location.href='javascript:history.go(-1);'</script>")
end if
end if
%>
<%end if%>
-----
是不是我的this.location.href='javascript:history.go(-1);
这句代码的问题?
那要是我关闭本页的话,在 alert() 里怎么写?