Redirect after scrolling the page

is it possible to create a redirect only after the page has been scrooled, for example, in the middle and redirects to another page? I tried various solutions and plugins but couldn't find anything that suited me

Topic wp-redirect redirect Wordpress

Category Web


Try this solution: You can easily do this by using jQuery.

jQuery(document).scroll(function() {
  var y = $(this).scrollTop();
  if (y > 800) {
    window.location.replace("http://stackoverflow.com");
  } else {
    console.log('test');
  }
});

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.