javascript popup stop after some time

Tidal

New Member
I have created a simple javascript popup which will ask user to wait for 10 mins or continue to process. In my php site I already put a condition if time is less than 10 mins then only the pop up should appear. I need to write a another function for the javascript to popup only for 10mins even after refreshing the page, and after that it should not appear. as I am new to javascript, I could not get the right function to overcome it. really appreciate your help, thanks This is my popup code:\[code\]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.") }}\[/code\]
 
Back
Top