Skip to content

Instantly share code, notes, and snippets.

@ubergoober
Created May 7, 2014 17:44
Show Gist options
  • Save ubergoober/8a2661cf654e9dce8731 to your computer and use it in GitHub Desktop.
Save ubergoober/8a2661cf654e9dce8731 to your computer and use it in GitHub Desktop.
No Javascript redirect with message
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
document.write('Your browser complies with my needs... ');
// uncomment the below to redirect to a url
// window.location = 'http://google.com';
</script>
<noscript>
<div style="font-weight: bold;">
Really? No javascript?! <br />
<br />
This site doesn't degrade to your browsers level. <br />
Enable javascript or upgrade your browser.
</div>
</noscript>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment