<body>
<script language="javascript">
function pasuser(form) {
if (form.id.value=="HKDSE") {
if (form.pass.value=="HKDSE") {
location="index2.htm"
} else {
alert("密碼錯誤")
}
} else { alert("無效用戶")
}
}
</script>
<tr><td width="1275"><form name="form1" method="post" action="">
UserID
<input name="id" type="text">
Password
<input name="pass" type="password">
<input name="button" type="button" onClick="pasuser(this.form)" value="登入">
</form>
<p></p>
</body>
如何可以在輸入正確密碼後可以成功轉換頁面,即是TARGET要可以那裡打