title: MVC Button click open in new Window
body: <p>Hi I need to open my view in a new window on this button click but it opens in the same window. This is the syntax I'm using.</p>
  
  <pre><code>&lt;button  id="btnPrintReport" onclick="location.href='@Url.Action("LoadReports", "DashBoard", new { target="_blank" })'" &gt;Print&lt;/button&gt;
  </code></pre>
  
  <p>Have I missed anything? Thanks.</p>