Created
April 10, 2018 03:26
-
-
Save dblotsky/bdf5cb9720c15aac7ace9c02235c03b7 to your computer and use it in GitHub Desktop.
Sample JS "Redirect"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<!-- CSS goes in here --> | |
<style type="text/css"> | |
</style> | |
</head> | |
<body> | |
<!-- your HTML goes in here --> | |
<!-- JS goes in here --> | |
<script type="text/javascript"> | |
var WAIT_IN_MILLISECONDS = 3000; | |
// define the function that will get called after the timeout | |
function redirectToPlace() { | |
window.location = 'http://tchebotarev.com'; | |
} | |
// schedule the function to get called after the timeout | |
setTimeout(redirectToPlace, WAIT_IN_MILLISECONDS); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment