Return to Snippet

Revision: 8047
at August 29, 2008 16:14 by Anthony


Initial Code
//// in body of home.htm
<noscript>
    <meta http-equiv="Refresh" content="0; URL=NoScript.htm" />
</noscript>

//// NoScript.htm
<html>
<head>
    <title></title>

    <script language="javascript" type="text/javascript">
        document.location = "home.htm";
    </script>

</head>
<body>
<noscript>
    You must enable JavaScript to use <a href="home.htm">this website</a>.
</noscript>
</body>
</html>

Initial URL

                                

Initial Description
First noscript tag redirects the user to the page telling them to allow scripts.  Second section is an example page of one which will go to the default page if scripts are allowed, or to give them a message otherwise.

Initial Title
Check for JavaScript Acceptance

Initial Tags
javascript

Initial Language
HTML