This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

formtarget

Summary

Specifies a name or a keyword that indicates where to display the response that is received after submitting the form.

Applies to [HTMLInputElement](/html/elements/input)
The formtarget attribute overrides the target attribute of the \ element.

Examples

<form action="submit.php">
  Input field: <input type="text" name="inputfield">
  <input type="submit" value="Submit">
  <input type="submit" formtarget="_blank" value="Submit to a new window">
</form>

Related specifications

HTML5 Forms
W3C Recommendation