<form method="" action="" target="">
Browser |
|
---|---|
Type |
The target attribute of the FORM element specifies the window where the result is displayed.
<form method="POST" action="example.cgi" target="_top"></form>
Attribute | Value | Explanation |
---|---|---|
target=" " | _blank | the result opens in the new window |
_top | the result opens in the entire window | |
_self | the result opens in the same frame | |
_parent | the result opens in the parent frame | |
frame name | the result opens in the named frame |
Example
The result is displayed in the bottom frame.
<form method="GET" action="example01c.html" target="bottom">
<p>Comment : <input type="text" name="name" size="50">
<input type="submit" value="Send"></p>
</form>
- Output
-
Example page
This form cannot submit because of a sample.