<form target="_self">
<input type=submit formtarget="_blank">
</form>
Live Demo
The Low Down
The formtarget attribute is for submit buttons to force override the target set in the form attribute. For example, the form's target may be set to open in a new window. The formtarget can override that and open within the same window.
- Possible use case: No idea. You can override about everything else, why not this?
- IE 9 accepts the attribute but it doesn't actually work. Can't test yet in IE 10 PP2 (one window).
- Didn't work in Safari 5.0.3 but does now in 5.2. Also fixed from iOS 4 to 5.
|