title: How to close window on browser (ASP.NET MVC)
body: <p>Good day!</p>
  
  <p>EDIT: 
  I have simple static site and script in it: when i press Cntrl-Enter- open popup window.And then after press -Submit- i send post request into my mvc app.</p>
  
  <p>I write simple asp mvc app , result of it work- send message at opened popup window:All done.Press button to close it".  </p>
  
  <p>Return result into this window:</p>
  
  <pre><code>public ActionResult Index()
      {
          ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";
          Response.CacheControl = "no-cache";
          Response.AddHeader("Pragma", "no-cache");
          Response.Expires = -1;
          Response.AddHeader("Cache-Control", "no-cache");
  
          return View();
      }
  </code></pre>
  
  <p>How i try to close this window on client:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function OnCloseForm()
  {
  
      this.window.close();
  }
  </code></pre>
  
  <p></p>
  
  <p><p></p></p>
  
  <p>But i cant do that!
  I know,that i should use window.open() and then i can do window.close().
  But how to close popup window at my case?</p>
  
  <p>Thank you!</p>
  
  <p>P.S. Unfortunatelly- window.close() not works.</p>