Javascript onclick hide div
<p>I want to hide this warning div using javascript inside it.</p>

<p>I'm i getting the javascript right? I want to hide/close the div when i click on the close icon (images/close_icon.gif)</p>

<pre><code>&lt;div&gt;
  &lt;strong&gt;Warning:&lt;/strong&gt;
  These are new products
  &lt;a href='#' class='close_notification' title='Click to Close'&gt;
    &lt;img src="images/close_icon.gif" width="6" height="6" alt="Close" onClick="this.close" /&gt;
  &lt;/a
&lt;/div&gt;
</code></pre>
