ユーザーに 10 分間待機するか、処理を続行するかを尋ねる単純な JavaScript ポップアップを作成しました。私のphpサイトでは、時間が10分未満の場合、ポップアップのみが表示されるという条件をすでに設定しています。ページを更新した後でも10分間だけjavascriptがポップアップするように別の関数を書く必要があり、その後は表示されません。私はJavaScriptが初めてなので、それを克服するための適切な機能を得ることができませんでした. あなたの助けに本当に感謝します、ありがとう
これは私のポップアップコードです:
function confirmation() {
var answer = confirm("You are trying to payment again, please wait for 10 mins to avoid duplicate payment. Click OK to wait and Cancel to continue pay")
if (answer){
alert("Thank you for waiting,please check your mail in 10 minutes, if you did not recieve any mail, proceed to purchase again.")
document.formDealPayment.submit();
}
else{
alert("Thank You.")
}
}