The target attribute defines where to display the response after submitting the form.
Target can have one of the following values:
Value |
Description |
_blank |
The response is shown in a new window or tab. |
_self |
The response is shown in the current window |
_parent |
The response is shown in the parent frame |
_top |
The response is shown in the full body of the window |
framename |
The response is shown in a named iframe |
The default value is _self, meaning the response will open in the current window.
Example
In this case, the submitted result will open in a new browser tab:
<form action=”/action_page.php” target=”_blank”> |