Hide 'No JavaScript' Error Message


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

Doesn't flicker on page load.


Copy this code and paste it in your HTML
  1. <script type="text/javascript"><!--- Messaging for non-JS browsers --->
  2. document.write('<style type="text/css">#formErrorMsg, li#noJS { display: none; }</style>');
  3. </script>

URL: http://stackoverflow.com/questions/5334329/display-enable-javascript-message-only-when-javascript-is-disabled

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.