I'm building a survey in which respondents will work on a task for 10 minutes. I want to have a pop up message along with a customized button for clicking at randomly specified timepoints. More specifically, I want the message to say "Please click on this button in 10 seconds to continue". I know that pop-up messages can be achieved with "alert" function in JavaScript, but how can I build-in a button as well so that the pop-up message disappears after respondents have clicked on the button? I also want to record if clicking is done in 10 seconds after the button is shown.
Moreover, I want the waiting time for the button to be clicked to be excluded from the 10 minutes timer. How can I achieve this?
Thanks for your help!
Best answer by LaurenK
View original