YouTip LogoYouTip

Att Input Formtarget

# HTML `` formtarget Attribute The `formtarget` attribute of the `` element specifies where to display the response received after submitting the form. It acts as a target name or keyword (such as a new window, tab, or iframe). This attribute is particularly useful when you have multiple submit buttons within the same form and want them to display their results in different locations. --- ## Overview The `formtarget` attribute overrides the default `target` attribute of the parent `
` element. ### Key Characteristics: * **Override Capability:** If the `` element has a `target` attribute, the `formtarget` attribute on an `` element will take precedence for that specific submission. * **Applicable Types:** The `formtarget` attribute can only be used with `` elements where `type="submit"` or `type="image"`. * **HTML5 Feature:** This is a modern HTML5 attribute. --- ## Syntax ```html ``` --- ## Attribute Values | Value | Description | | :--- | :--- | | `_blank` | Loads the response in a new window or tab. | | `_self` | Loads the response in the same frame/tab as the current document (Default). | | `_parent` | Loads the response in the parent frame. | | `_top` | Loads the response in the full body of the window (breaks out of all frames). | | *`framename`* | Loads the response in a named `