【发布时间】:2009-07-16 09:44:39
【问题描述】:
我在我的 Page1.aspx 中回发到另一个页面。如果在 Page1.aspx 中按 F5 键,则会出现消息(要再次显示网页,Internet Explorer 需要重新发送您之前提交的信息。 如果您正在购买,您应该单击取消以避免重复交易。否则,请单击重试以再次显示该网页。)
我有这个 javascript 代码,这是我的问题的解决方案??
提前致谢
function calc()
{
var pagoConPopup = true;
if (pagoConPopup)
{
var ventanaTPV = window.open('', 'ventanaTPV', 'width=725,height=600,scrollbars=no,resizable=yes,status=yes,menubar=yes,location=yes');
if (ventanaTPV == null || !ventanaTPV || typeof (ventanaTPV) == "undefined")
{
alert("Se ha detectado bloqueador de ventanas emergentes. Desactívelo para proceder al Pago");
}
else
{
document.forms[0].target = 'ventanaTPV';
hacerSubmitPOST();
ventanaTPV.focus();
}
}
else
{
hacerSubmitPOST();
}
}
function hacerSubmitPOST()
{
//*** Prueba de Hack ***
//alert('Prueba de hack Amount');
//document.getElementById("Amount").value = "12000";
//*** Fin Prueba de Hack ***
document.forms[0].action = '<%=strURLTpvVirtual%>';
document.forms[0].submit();
}
【问题讨论】: