Thấy Mr.khang xin nên share, ai dùng thanks nhé
Code:
<script language="javascript"><!--///*This Script allows people to enter by using a form that asks for aUserID and Password (GeluKrait@yahoo.com)*/function pasuser(form) {if (form.id.value=="echip") { if (form.pass.value=="echip") { location="www.echip.com.vn" } else {alert("Invalid Password")}} else { alert("Invalid UserID")}}//--></script><center><table bgcolor="white" cellpadding="12" border="1"><tr><td colspan="2"><center><h1><i><b>LoginArea</b></i></h1></center></td></tr><tr><td><h1><i><b>User ID:</b></i></h1></td><td><form name="login"> <inputname="id" type="text" size="20"></td></tr><tr><td><h1><i><b>Password:</b></i></h1></td><td> <input name="pass"type="password" size="20"></td></tr><tr><td><center><input type="button" value="Login"onClick="pasuser(this.form)"></center></td><td><center><br><inputtype="Reset"></form></td></tr></table></center> </body></html>