The following markup is generated by my ASP.NET MVC page.
<button onclick="window.open='/Client/ReleaseForm';" type="button" class="btn btn-primary">
View/Print Release Form
</button>
However, clicking the button has no effect. No window is opened, no new tabs are opened, and no errors are shown in the console of my Chrome browser.
I know there are pop-up blockers, but I had got the impression that this worked as long as it was in response to a user action (such as clicking the button).
Can anyone tell me how I can display content in a new window?
window.openis a function -window.open("/Client/ReleaseForm")window.openwith a string. Try in a freshly-loaded page.