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
formtargetattribute 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
<inputtype=submit>and<input type=image>or<button>with aformtargetattribute set, that button’sformtargetattribute value overrides thetargetattribute of the<form>.