This example contains a form with two submit buttons. The first submit button submits the form data with default target ("_self"), and the second submits the form data to a new window (target="_blank"):
If you click on the submit buttons above, notice that the formtarget attribute overrides the HTML form's target attribute (default is "_self").
Click the "Try it" button to return the value of the formtarget attribute of the second submit button above.