html 如何使input type = "image" 不提交表单...
时间:2010-08-17 来源:yinke11111
今天遇到个小问题,单击<input type='image'>的时候会伴随着页面提交。
在form 处,加上onsubmit="return false;"
如:<form name="form1" action="" method="post" onsubmit="return false;">
相关阅读 更多 +
时间:2010-08-17 来源:yinke11111
今天遇到个小问题,单击<input type='image'>的时候会伴随着页面提交。
在form 处,加上onsubmit="return false;"
如:<form name="form1" action="" method="post" onsubmit="return false;">