onsubmit="return check();"和onsubmit=&quo 财富值97

2016-10-28 23:24发布

<form name="Form" action="t" method="post" onsubmit="return check();"> 

如果这句没有return有什么不同?

12条回答

其他大多数事件也可以这样使用。
例如:
<input type="text" onkeypress="return false;" />将使该输入框无法输入字符`
<input type="button" onclick="return false;" />将使该按钮的点击无效`