submit不是属性而是方法哟,你要把它定义为事件句柄的话那上面的就是对的,如果不是的话就应该在submit后面加一对括号.下面是MSDN里关于submit Method的描述.submit Method--------------------------------------------------------------------------------Submits the form.SyntaxFORM.submit()
Return ValueNo return value.ResThe submit method does not invoke the onsubmit event handler. Call the onsubmit event handler directly. When using Microsoft?Internet Explorer 5.5 and later, you can call the fireEvent method with a value of onsubmit in the sEvent parameter.