javascript - Popup box with a timer -


After the specified idle time (say for idle time 10 minutes), the application should pop up a pop up box with a timer Display as 60 59 58 ... 1), that box should be closed within 60 seconds with option option and should close that browser if the user chooses no option if the user can cancel within 60 seconds. Chooses the option, then it will be closed Ahia.

To show the popup box I am using setTimeout ("pop ()", 600000); The way to include a timer is that at least that box should be closed within 60 seconds, if the user does not choose an option, is there a solution for this?

You can try entering the code below in your popup window.

& lt; Script & gt; Function Metimer () {setTimeout (function clallion () (window.close;}, 600000);} & lt; / script & gt; body onload = "mutimer ();" & gt; < / Pre>

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -