<!DOCTYPE?HTML>
<html>
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>
<title>?鼠標(biāo)經(jīng)過(guò)事件?</title>
<script?type="text/javascript">
????function?message(){
?????
??????var?p=document.getElementById("pass");
??????
??????if(p.value=="")
??????{
??????var?que=document.getElementById("okk");?
??????que.style.color="red";
??????if(confirm("請(qǐng)輸入密碼后,再單擊確定!"))
????????{
????????????p.focus();
????????}
????????esle
????????{
????????????p.focus();
????????????que.style.color="blue";
????????}
??????}
????
????}
??
</script>
</head>
<body>
<form>
密碼:<input?name="password"?id="pass"?type="password"?>
<input?name="確定"?id="okk"?type="button"?value="確定"?onmouseover="message()"/>
</form>
</body>
</html>
2016-07-18
單詞拼寫(xiě)錯(cuò)誤,是“else”不是“esle”