[Solved] How to create screensaver like screen in HTML, Jquery [closed]

$(document).ready(function(){ var timeout; $(document).on(“mousemove keydown click”, function() { clearTimeout(timeout); timeout = setTimeout(function() { window.location = “homePage.htm”; }, 2 * 60 * 1000); }).click(); }); All of the functions used above are well documented at either the jQuery site or MDN. EDIT – Explanation of how this works: it sets a timer to redirect after two … Read more