Skip to content

Instantly share code, notes, and snippets.

@fedir
Last active Dec 16, 2015
Embed
What would you like to do?
HTML redirection with both meta refresh and JavaScript ref:http://stackoverflow.com/questions/5411538/how-to-redirect-from-html-page
<!DOCTYPE HTML>
<html lang="fr-FR">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0;url=http://example.com">
<script type="text/javascript">
window.location.href = "http://example.com"
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow the <a href="http://example.com">link</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment