看板 Web_Design 關於我們 聯絡資訊
<form> <input type=text name=asdf> <input type=submit disabled> </form> 大家開一個記事本,打好存成html, 明明就disabled了可是,把那個text focus以後按下enter鍵, 表單還是送出去,太神了, 如果把上面的code改成: <form> <input type=text name=asdf> <input type=text name=asdfasdf> <input type=submit disabled> </form> 不管focus哪一個text按下enter鍵都無用, 就是合乎道理的結果, 請問第一段code,為什麼會出現那個問題阿?? 我實在不知道why. 但我非解決不可,請大家幫我想想看, 謝謝你們 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.132.136.245
gckenny:<form onsubmit="return false"> 01/01 13:49