Check for JavaScript Acceptance


/ Published in: HTML
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. //// in body of home.htm
  2. <meta http-equiv="Refresh" content="0; URL=NoScript.htm" />
  3.  
  4. //// NoScript.htm
  5.  
  6. <script language="javascript" type="text/javascript">
  7. document.location = "home.htm";
  8. </script>
  9.  
  10. </head>
  11. You must enable JavaScript to use <a href="home.htm">this website</a>.
  12. </body>
  13. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.