onsubmit=“return false” has no effect on Internet Explorer 7/8 (form is still submitted)

后端 未结 14 1993
耶瑟儿~
耶瑟儿~ 2020-12-11 04:03

I have a form that will be submitted by javascript code triggered in \"onsubmit\" of the tag. Works fine on all browsers - but not on IE7/IE8.

What can I do?

<
14条回答
  •  攒了一身酷
    2020-12-11 04:28

    It works - check W3Scools example (taken from ) http://www.w3schools.com/js/js_form_validation.asp

    
    
    
    
    
    
    
    Email:

提交回复
热议问题