The formtarget attribute sets where the response is shown when a specific submit control is used. It overrides the form’s target for that click only. Use it on a <button> that submits a form, or on <input type="submit"> / type="image".
Values match browsing-context names: keywords like _blank, or the name of an <iframe>. Pair with formaction when that button also needs a different URL.
Baseline · Widely available.
Not deprecated and not experimental. Stable across modern browsers since about July 2015.
New tabs and focus.
_blank can surprise users (especially with assistive tech). Prefer same-tab submit unless a new context is clearly helpful, and label the control accordingly.
formtarget is an HTML attribute for submit controls in the browser. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
formtarget
Widely available since about July 2015. Chrome, Firefox, Safari, Edge, and Opera support overriding the form target from a submit control.
97%Global support (approx.)
Google Chrome9+
Full support
Mozilla Firefox4+
Full support
Apple Safari5.1+
Full support
Microsoft Edge12+
Full support
Opera10.6+
Full support
Samsung InternetModern
Full support
Internet Explorer10+
Supported
formtargetWidely supported
Bottom line: Safe to use for per-button targets in modern browsers. Prefer same-tab submit unless a new context is intentional.
Remember
Key Takeaways
Role: override the form’s target for one submit control.
Values:_self, _blank, _parent, _top, or a frame name.
Iframes: match formtarget to iframe name.
UX: say when a new tab will open.
One line:formtarget lets each submit button choose where the response appears without cloning the form.
Frequently Asked Questions
On a submit button or input type=submit (or image), formtarget sets where the form response is displayed. It overrides the target attribute on the owning form for that submission only.
Keywords _self, _blank, _parent, and _top, or the name of a browsing context such as an iframe’s name.
target is set on the form (or links) as the default. formtarget is set on a specific submit control and overrides target when that control is used.
Usually yes — a new tab or window, depending on the browser and user settings. Pair with rel="noopener" on links; for forms, be aware of opener behavior when opening new contexts.
Yes. Give the iframe a name, then set formtarget to that same name (or use target on the form).
It is Baseline widely available (since about July 2015) in modern Chrome, Firefox, Safari, and Edge.