title: how to stop refreshing parent page while child window open?
body: <p>when i click link to open child window, parent page refresh automatically. how can i stop it?</p>
  
  <p>parent page should not refresh while open child window. how to do this? please help me.</p>
  
  <p>my code is as below given:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;login&lt;/title&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
  
  &lt;script type="text/javascript"&gt;
  var popup;
  function ShowPopup(url) {
  if(popup)
      {
       popup.close();
       }
      popup = window.open(url, "self", "toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=0,width=300,height=350,left = 0,top = 0");
          popup.focus();
   }
  &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;a href="" onclick="ShowPopup('popup_login.asp')" style="color: #1686CC;"&gt;Sign In / Register&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>