You can simulate a button with the HTML <a>
element to achieve it. Why use <a>
? Because it has a property called target
that allows you, among other things, to achieve what you want to generate the document from another window in your browser. The target="_blank"
property indicates that your javascript code of onClick
is executed in a new browser tab.
To do this you transform your input into the following code:
<a type="button" href="#" value="Ver Reporte" target="_blank" class='btn btn-success' onClick="document.formulario.action='verPDF.php'; document.formuario.submit();"></a>
Then using CSS you can delete the blue color of the letter by being a link, the underline, among other things that you do not like.
I hope it helps. Greetings!