Skip to content

A configurable javascript utility class that sets a timeout on your page before redirecting. The timer resets when you click something on the page.

Notifications You must be signed in to change notification settings

mattbell87/redirect-timeout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Redirect Timeout

A configurable javascript utility class that sets a timeout on your page before redirecting. The timer resets when you click something on the page.

Usage

<script src="redirect.js"></script>
<script>
	var timeout = new RedirectTimeout(
	{
		url: 'index.html',    //URL to redirect to
		time: 1.5*60*1000,    //Time taken before it redirects 
						// (min*sec*msec, 1.5 minutes shown here)
		resetOnClick: true    //Reset the timer when something on the page is clicked 
						// (defaults to true)
	});
</script>

About

A configurable javascript utility class that sets a timeout on your page before redirecting. The timer resets when you click something on the page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published