Last active
January 12, 2017 13:18
-
-
Save nicobo/53f11aa81ea37abb90cfe7be925f1abf to your computer and use it in GitHub Desktop.
Automatic redirection of the top window
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
<html> | |
<body style="background: orange"> | |
<script type="application/javascript"> | |
function doit() { | |
top.location.href = "https://www.google.fr"; | |
} | |
// gives us 10 seconds before redirecting | |
setTimeout( doit, 10000 ); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment