當(dāng)提交表單時(shí)執(zhí)行一段 JavaScript:
<form action="demo_form.asp" onsubmit="checkForm()"
>
IE | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|
所有主流瀏覽器都支持 onsubmit 屬性。
onsubmit 屬性在提交表單時(shí)觸發(fā)。
onsubmit 屬性只在 <form> 中使用。
無。
<form onsubmit="script">
值 | 描述 |
---|---|
script | onsubmit 發(fā)生時(shí)運(yùn)行的腳本。 |
如對(duì)本文有疑問,請(qǐng)?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答??! 點(diǎn)擊進(jìn)入論壇
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號(hào)