title: How to close a popup window using Javascript
body: <p>I am new to web development environment. I am just a beginner. I just tried to open a popup window using javascript, following is the code </p>
  
  <pre><code>&lt;li&gt;
    &lt;a href = "javascript:void(0)" onclick ="document.getElementById('light').style.display='block';document.getElementById('fade').style=display='block'"&gt;&lt;strong&gt;Our Mission&lt;/strong&gt;
      &lt;em class="ico1" &gt;&lt;/em&gt;
    &lt;/a&gt;
  &lt;div id="light" class="white_content"&gt;  &lt;font color="white" &gt;&lt;p&gt; SOME TEXT HERE&lt;/font&gt;  
  &lt;/div&gt; 
  </code></pre>
  
  <p>The popup window opens. When I tried to close it, it s not working. Please help me to close the popup window.</p>