the target window of the result


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

Browser
Internet Explorer Firefox Opera
Type
Block-level

The target attribute of the FORM element specifies the window where the result is displayed.


<form method="POST" action="example.cgi" target="_top">


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
Tips and Notes

The target attribute cannot be used with the Strict DTD.


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 page

This form cannot submit because of a sample.