The Current State of HTML5 Forms

The formtarget Attribute

<form target="_self">
  <input type="submit" formtarget="_blank">
</form>
		

Live Demo

Firefox
4+
Safari
5.2+
Safari Mobile
5+
Chrome
10
Opera
10.6+
IE
10+
Android
4.0
Supported Supported Supported Supported Supported Supported Supported

The Low Down

The formtarget attribute enables overriding of the target attribute set in the <form> opening tag, giving the browsing context, or target, of the form response.

  • The formtarget attribute specifies which window should be used to display the form response.
  • Determines with window or frame the response will open in. "_self" is the default.
  • Values can include "_blank", "_self", "_parent", or "_top", case-insensitive , or a name you create the name of a browsing context that doesn't start with '_'.
  • Valid as an attribute of elements that can submit a form, including <input type=submit> and <input type=image> and <button>.
  • If the form is submitted via <input type=submit> and <input type=image> or <button> with a formtarget attribute set, that button's formtarget attribute value overrides the target attribute of the <form>.