The simplest user Login JS verification program
<script language= "JavaScript" >
<!--
function Form1_onsubmit ()
{
if (document.form1.keyword.value== "")
{
Alert ("Please enter the query keyword!") ")
Document.form1.keyword.focus ()
return False
}
else if (document.form1.keyword.value== "Please enter query key")
{
Alert ("Please enter the query keyword!") ")
Document.form1.keyword.focus ()
return False
}
else if (document.form1.sort.value== "")
{
Alert ("Please select category!") ")
Document.form1.sort.focus ()
return False
}
}
-->
</script>
<form name= "Form1" method= "Post" action= "Search.asp" onsubmit= "return Form1_onsubmit ()" >
<TD align= "Right" height= "class=" padding2 "><input type=" text "name=" keyword "value=" Please enter the query keyword "onfocus=" This.value= '; ' onblur= ' if (this.value== ') {this.value= ' Please enter the query keyword '; this.style.color= ' #999999 '}else{ This.style.color= ' #000000 '}; "style=" color: #999999; >
<select name= "Sort" size= "1" >
<option value= "" > Please select Category </option>
<option value= "pic" > Picture material </option>
<option value= "template" > Template download </option>
<option value= "free" > Space domain name </option>
<option value= "Build" > Web page Making </option>
<option value= "Effect" > Web effects </option>
<option value= "Run" > website Operations </option>
<option value= "Web" > Web site included </option>
<option value= "BBS" > Webmaster forum </option>
</select>
<input type= "Submit" name= "submit" value= "Query" class= "button" ></td>
</form>
</tr>
</table>