Screeching Kitten Soul Screeching Kitten Soul - 1 year ago 57
CSS Question

Redirect to previous page on timer script

What I am trying to do is to have it when the user goes to this webpage, after 10 seconds it sends them back to the page they where previously on.

Answer Source

To get back to the page the visitor came from after 10 seconds , you can use something like:

setTimeout(function(){
  document.location = document.referrer}
,10000)