Target attribute in form tag

suggest change

The target attribute specifies a name or a keyword that indicates where to display the response that is received after submitting the form.

The target attribute defines a name of, or keyword for, a browsing context (e.g. tab, window, or inline frame).

From Tag with a target attribute:

<form target="_blank">

Attribute Values

<th>Value</th>
<th>Description</th>
<td>_blank</td>
<td>The response is displayed in a new window or tab</td>
<td>_self</td>
<td>The response is displayed in the same frame (this is default)</td>
<tr>
<td>_parent</td>
<td>The response is displayed in the parent frame</td>
<tr>
<td>_top</td>
<td>The response is displayed in the full body of the window</td>
<td><i>framename</i></td>
<td>The response is displayed in a named iframe</td>
Note: The target attribute was deprecated in HTML 4.01. The target attribute is supported in HTML5.

Frames and framesets are not supported in HTML5, so the _parent, _top and framename values are now mostly used with iframes.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents