title: Asp.net - New Window is closing when script alert shows
body: <p>Hello I have a web application developed in asp.net. I have 2 web forms WebForm1 and WebForm2. In WebForm1 I had a button that will go to WebForm2.</p>
  
  <p>Here is my code for that step. </p>
  
  <pre><code>Response.Write("&lt;script type='text/javascript'&gt;window.open('WebForm2.aspx','_blank');&lt;/script&gt;");
  </code></pre>
  
  <p>In WebForm 2 I had a script that show message like Messagebox in windows form</p>
  
  <pre><code>Response.Write("&lt;script type=\"text/javascript\"&gt;alert('Msg.');" + "window.close();&lt;/script&gt;");
  </code></pre>
  
  <p>Now everytime i close the message box my WebForm2 also closed.</p>
  
  <p>Is there a way that I can show messagebox.</p>