WHAT IS THE DAM CODE
LOOK, ITS A GOOD IDEA BUT NOT GOOD ENOUGH. SHOW ME THE REAL CODE, PLEASE
<script language="javascript"> function loginPage(form) { if (form.userName.value=="username") { if (form.passWord.value=="password") { location="home.html" } else { alert("Incorrect detail Password") } } else { alert("Incorrect detail Username") } } </script>
<center> <form> <table cellpadding="5" cellspacing="5"> <tr> <td colspan="3"> <h1 style="text-align:center;"> Login </h1> </td> </tr> <tr> <td> </td> <td width="10"> </td> <td> <input type="text" name="userName" autofocus="autofocus" style="font-size:18px; text-indent:5px;" placeholder="Enter your Username"> </td> </tr> <tr> <td> </td> <td width="10"> </td> <td> <input type="password" name="passWord" autofocus="autofocus" style="font-size:18px; text-indent:5px;" placeholder="Enter your Password"> </td> </tr> <tr> <td colspan="3" style="text-align:center;"> <br /> <input type="button" value="Login" onClick="loginPage(this.form)" style="margin-right:20px; border-radius:4px; background-color:skyblue; font-size:18px; cursor:pointer;"> <input type="reset" value="Reset" style="font-size:18px; cursor:pointer; border-radius:4px; background-color:orange;"> <br /> <br /> </td> </tr> </table> </form> </center>