Cloud Cloud Cloud Cloud

The formtarget Attribute

The Current State of HTML5 Forms

Let Wufoo do the hard work. Sign up for a free account and start making forms the easy way.

Live Demo


 


Firefox
4+

Safari
5.2+

Safari
5+

Chrome
10

Opera
10.6+

IE
10+

Android
4.0

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 <inputtype=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>.
Cloud Cloud Cloud Cloud

Let Wufoo do the hard work.

Sign up for a free account and start making forms the easy way.

Our Cookie Policy and Privacy Policy outline how we use cookies to help optimize service, personalize content, tailor and measure our marketing, and improve your user experience. I agree to use of cookies for these purposes.