Javascript toggle enabled/disabled
<p>What's the best way to toggle a "Please have Javascript enabled" warning?</p>

<p>Currently I've got something like this:</p>

<pre><code>&lt;div id='JSwarning'&gt;ONLY SQUARES DON'T USE JAVASCRIPT&lt;/div&gt;
</code></pre>

<p>to which I then apply <code>.style.display = "none"</code>.</p>

<p>This shows the warning on every page for a little while until it loads.  There must be a more graceful way. Can I do it with PHP?  </p>

<p>(BTW, <code>get_browser()</code> is not the solution I'm looking for.)</p>

<p>//EDIT</p>

<p>Thanks everyone, that does the trick.  Incidentally, to get the page to validate (XHTML 1.0 Strict), I needed to place the child node(s) in a block container.</p>
