Redirect to next page after downtime

Asked

Viewed 113 times

1

Good morning!
I’m creating a rating system, consisting of choose the option, the user is redirecting to another page to leave a comment, and of followed showcase another page to thank, and it all comes back to the beginning.
But there are users who just choose the option and go away and remains the comment page...
What I wanted to do is for example, after 15 seconds (for example) if there is no movement, the page would automatically recognize the comment, validate only as an empty comment, and move to the "thank you" page, otherwise if the user is typing it may take as long as they like.
I’ve seen a lot of similar topics but it was with sessions, to depress the user, and I’m not using any session! Thank you!

  • this would be possible with javascript using a setTimeout and check if there are any comments

  • 1

    Can you show me an example please?

  • 1

    I will make a small example wait.

1 answer

0

Try to put the following snippet on the page where you need this redirect:

<META HTTP-EQUIV="Refresh" CONTENT="15 ; URL= pagina.html">
  • But so it will always do that even if the user is inserting the comment

  • 1

    In this case, check the [link] (https://answall.com/questions/26088/executar-a%C3%A7%C3%A3o-depois-de-2-minutos-sem-mover-o-mouse)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.