Skip to content

Instantly share code, notes, and snippets.

@sayhicoelho
Created January 12, 2019 03:38
Show Gist options
  • Save sayhicoelho/63d05492614b1084106107d5a71afe99 to your computer and use it in GitHub Desktop.
Save sayhicoelho/63d05492614b1084106107d5a71afe99 to your computer and use it in GitHub Desktop.
Noscript for HTML.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<noscript>
<meta http-equiv="refresh" content="0; URL=/noscript.html" />
</noscript>
<title>Loading...</title>
</head>
<body>
<script>
document.body.innerHTML = `<h1>Welcome with Javascript!</h1>`;
document.title = 'Welcome!'
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Enable the Javscript</title>
</head>
<body>
<h1>Enable Javascript to use our application!</h1>
<script>
window.location.href = '/';
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment