This example contains a form with a submit button that submits the form to a new window:
Click on the "Try it" button to change the value of the formtarget attribute of the submit button above.
Note: Click on the submit button before and after you have clicked on the "Try it" button.