Posted By

toddaeverett on 05/17/12


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hurcy


Hide 'No JavaScript' Error Message


 / Published in: JavaScript
 

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

Doesn't flicker on page load.

  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>

Report this snippet  

You need to login to post a comment.