title: window.location.reload refreshing the main window
body: <p>the following is on a page, when i click it - I DO NOT want the page to refresh, but only the new window which this link opens - i want to refresh that newly opened page, not the main window.</p>
  
  <p>clicking the link opens the new window correctly, but refreshes the main window also (where the link lies). that is undesirable and i want to know how to stop it from doing so.</p>
  
  <pre><code>&lt;a href="" onclick="window.open('URL','mywin');mywin.location.reload();"&gt;clik to open new window&lt;/a&gt;
  
  &lt;a href="" onclick="window.open('URL','mywin');"&gt;clik to open new window&lt;/a&gt;
  </code></pre>
  
  <p>pl advice.</p>
  
  <p>as advised below, but not working: infact it is breaking the new window, new window appears as blank window!</p>
  
  <pre><code>&lt;a href="" onclick="mywin = window.open('URL','mywin');mywin.location.reload();"&gt;clik to open new window&lt;/a&gt;
  </code></pre>