※ E-mail 確認表單 ※
|
<SCRIPT LANGUAGE="JavaScript"> function evalform(address) { crucial = address.indexOf ("@"); if(crucial == -1) { window.alert("你剛輸入的電子信箱不存在."); return false } else { message = "你剛輸入的 "+address+" -- 正確嗎?"; return window.confirm(message)}; } </SCRIPT> <FORM onSubmit="evalform(this.email.value)"> 電子信箱: <INPUT NAME="email" TYPE="text" ROWS=1 SIZE="20"> <INPUT NAME="Submit" TYPE="Submit"> <INPUT NAME="Reset" TYPE="Reset"> |