我用DW时,行为面板有检查表单的OnSummit,也有转到URL地址,可是两个行为都采用的时候就不对了。
1<form action="mailto:[email protected]" enctype="text/plain" id="form1" method="post" name="form1" onsubmit="MM_validateForm('name','','R','Email','','RisEmail');return document.MM_returnValue">
2这个onsubmit里面现在只有检查表单的功能,我想应该能根据document.MM_returnValue来判断,可是不知道怎么写代码
3\---------------------------------------------------------------
4
5UPUP!!!!
6\---------------------------------------------------------------
7
8MM_validateForm是什么??
9document.MM_returnValue又是什么??
10你想实现什么??
11\---------------------------------------------------------------
12
13在onSubmit 里直接放一个函数
14如onSubmit = "return datacheck()"
15
16在datacheck()函数里执行你想进行的检验如:
17function datacheck()
18{
19if 数据出错{
20alert("wrong");
21return false;
22}
23else
24return true;
25}
26
27have a try
28good luck
29^_^</form>