saikat mukherjee saikat mukherjee - 1 year ago 80
Javascript Question

<button formtarget="_blank"></button> not working

I have a button tag that is referring to a link given as below

<button onclick="window.location=''" formtarget="_blank"></button>

but its opening in the same tab what's the problem

Answer Source

formtarget only work for form, if you want for link, You can try this

<button onclick="'', '_blank');">BUTTON TEST</button>


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download