<form method="" action="" target="">

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
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.

Target


<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 pagenew window

This form cannot submit because of a sample.