Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML button formtarget attribute

HTML

HTML

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, Opera, Chrome, and Safari support the formtarget attribute.

Note: Internet Explorer 9 and earlier IE versions do not support the formtarget attribute.


Definition and Usage

The formtarget attribute specifies where to display the response after submitting the form. The formtarget attribute overrides the form element's target attribute.

This attribute is used with type="submit".


Differences between HTML 4.01 and HTML5

The formtarget attribute is new in HTML 5.

**Note:** HTML5 does not support frames and framesets. Nowadays, the parent, top, and framename values are mostly used with iframe.


Syntax