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.

<button  id="btnPrintReport" onclick="location.href='@Url.Action("LoadReports", "DashBoard", new { target="_blank" })'" >Print</button>

Have I missed anything? Thanks.

Related posts

Recent Viewed