Posted By

Anthony on 08/29/08


Tagged

javascript refresh meta acceptance noscript


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

rwczippy


Check for JavaScript Acceptance


 / Published in: HTML
 

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.

  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  

You need to login to post a comment.