HTML
Try it »
Browser support





Internet Explorer 10, Firefox, Opera, Chrome, and Safari support the formtarget attribute.
Note: Internet Explorer 9 and earlier IE versions do not support the formtarget attribute.
Definition and Usage
The formtarget attribute specifies where to display the response after submitting the form. The formtarget attribute overrides the form element's target attribute.
This attribute is used with type="submit".
Differences between HTML 4.01 and HTML5
The formtarget attribute is new in HTML 5.
**Note:** HTML5 does not support frames and framesets. Nowadays, the parent, top, and framename values are mostly used with iframe.
Syntax
Attribute values
| Value | Description |
|---|---|
| _blank | Submit the form to the document in a new window/tab. |
| _self | Submit the form to the document in the same frame. (default) |
| _parent | Submit the form to the document in the parent frame. |
| _top | Submit the form to the document in the full window. |
| framename | Submit the form to the document in the specified frame. |
HTML