Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
メソッドとして GET を使用するフォームがあります。フォームでいくつかのjs検証を行いたいです。を使用してイベントをバインドします
document.forms[0].onsubmit = function(){return myObj.myFrm.isFormValid();}.
Firefox では、最初に送信をクリックしたときに機能しますが、しばらくしてもう一度クリックすると、データを変更していなくてもフォームが送信されます。
何か案は?
イベント ハンドラーを追加するだけでは、送信が停止されません。
追加する必要がありますpreventDefault();
preventDefault();
(ドキュメンテーション)