(*)除了支持此功能的NC4之外 只有在没有多个输入字段时才能使用。 问题可能是如果没有达到最后一个字段,请避免提交。 一个简单的例子: http://stephane.moriaux.perso.wanado..._enter_tab.htm 填写第一个字段并对其进行有效触摸输入,将执行标签 ,你将进入下一个字段。 点击Enter仍然进入提交按钮并继续回车。 未经IE浏览器测试Any browser(*) submit the form by pressing touch ''Enter''.You just need :- not to have several submit button- when pressing Enter, an imput field must have the focus.(*) except NC4 which supports this feature only if there is not more than one input field.The problem could be to avoid submitting if last field is not reached.A simple example : http://stephane.moriaux.perso.wanado..._enter_tab.htmfill first field and valid it with touch Enter, that will execute taband you''ll be in next field.Hit Enter still to reach submit button and continue with Enter.Not tested with IE Windows 只有一个提交按钮会更好。 我的例子也适用于图像按钮 < input type =" image" SRC =" asm.gif"宽度= QUOT; 50" /> 除了IE :-( 药物: < script type =" text / javascript"> IE = false; / * @ cc_on IE = true; @ * / < / script> < input type =" image" src =" asm.gif" width =" 50" onkeydown =" if(IE)this.form .submit();"> - Stephane Moriaux et son(moins)vieuxMacdéjàdépassé Stephane Moriaux和他的(较少)旧Mac已经过时Only ONE submit button would be better.My example works too with an image button<input type="image" src="asm.gif" width="50" />Except with IE :-(Medication :<script type="text/javascript"> IE = false; /*@cc_on IE = true; @*/</script><input type="image" src="asm.gif" width="50" onkeydown="if(IE) this.form.submit();">--Stephane Moriaux et son (moins) vieux Mac déjà dépasséStephane Moriaux and his (less) old Mac already out of date 不要给提交按钮< ... name =" submit" .... 。Dont give < ... name="submit".... to the submit button. 这篇关于使用javascript&提交表单图像按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!