The simplest user Login JS verification program

Source: Internet
Author: User

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 ()" >
&LT;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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.