I am interested in running a slideshow in an unattended web browser. I would rather it didn’t crash. How should I make sure the javascript application continues to run or the browser reloads the home page when it crashes?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Prepare a frameset with one hidden frame, and your actual content frame as the other. Have a setTimeout running continuously in the hidden frame, which gets reset by the “content” frame from time to time. Lets say that the setTimeout in the hidden frame is 20 seconds, have the content frame reset that timeout (clearTimeout) every 10 seconds or so. If no reset is received (content frame has crashed), force reload the content frame from the hidden frame.