title: How to close browser tab with alert message in c#
body: <p>I have been trying with below code its getting execute but messagebox not displaying and tab also not getting close.</p>
  
  <pre><code>ScriptManager.RegisterStartupScript(this, this.GetType(), "Messagebox", "alert('Record Deleted successfully.Note: This tab is now getting close');", true);
  </code></pre>
  
  <p>so i just remove the 'alert' code from above code then its getting execute and getting close the tab. But I also want to display notification message box so how?</p>
  
  <pre><code>ScriptManager.RegisterStartupScript(this, this.GetType(), "Messagebox", "window.close();", true);
  </code></pre>