01.
<script language=
"JavaScript"
>
02.
function
fncSubmit()
03.
{
05.
document.frmMain.target=
"blank"
;
06.
document.frmMain.submit();
07.
}
08.
</scritp>
09.
<form action=
""
name=
"frmMain"
method=
"post"
>
10.
<fieldset style=
"width: 240px;"
>
11.
<legend>USER</legend>
12.
<input type=
"text"
id=
"txtName"
name=
"txtName"
size=
"20"
> <button id=
"performSearch"
OnClick=
"fncSubmit()"
>Search</button>
13.
</fieldset><strong>Code (JavaScript)</strong>
14.
</form>