title: Html javascript to open new window and close current window
body: <p>I have a popup window and in that page I have the following code in the body.</p>
  
  <pre><code>&lt;a href="http://www.example.com" target="_blank" onClick="javascript:window.close()"&gt;&lt;img src="...something"/&gt;&lt;/a&gt;
  </code></pre>
  
  <p>The purpose is to have this popup window close when a user clicks on the image link, and to open a new page and be directed to <em><a href="http://www.example.com" rel="nofollow noreferrer">http://www.example.com</a></em>.</p>
  
  <p>It works in IE and Chrome, but not in Firefox. The popup window closes but no new window is opened.</p>
  
  <p>Any ideas?</p>