<input type="button" name="reset" value="重置" onClick="if(window.confirm('注意:点击\“确认\”将清除您已输入的信息!')) {document.forms[signup_form].reset();return false;}">

解决方案 »

  1.   

    <input type="button" name="reset" value="重置" onClick="if(window.confirm('注意:点击\“确认\”将清除您已输入的信息!')) {document.forms["signup_form"].reset();return false;}">
    可是浏览起报语法错误!
      

  2.   

    document.forms["signup_form"].reset()
    改成form名字.reset()
      

  3.   

    document.forms["signup_form"].reset()
    和signup_form.reset();一样的啊!
    大哥,我表单的名字就叫signup_form啊!
      

  4.   

    <input type="button" name="reset" value="重置" onClick="if(window.confirm('注意:点击\“确认\”将清除您已输入的信息!')) {document.forms['signup_form'].reset();return false;}">
      

  5.   

    forms["signup_form"]
    forms[]不要
    直接写signup_form.reset()
      

  6.   

    把这段拿出来,写成函数,onclick调函数,不要直接写这么长的代码
      

  7.   

    大哥我写成signup_form.reset()啊?
    还是有错,我把onclick语句去掉就没有问题了!
    就是最后的return false有点不知是什么高深的用法?
      

  8.   

    <input type="button" name="reset" value="重置" onClick="document.signup_form.reset();return false;">
    我都写成这样了!还是同样的错
      

  9.   

    onsubmit="if(confirm())document.forms[0].submit();"
      

  10.   

    我将</form>放在
    <input type="button" name="reset" value="重置" onClick="if(window.confirm('注意:点击\“确认\”将清除您已输入的信息!')) {document.forms['signup_form'].reset();return false;}">
    之前就好了,很奇怪,是不是document.forms['signup_form']这个对象要在</form>后才会生成???
      

  11.   

    <input type="button" name="reset" value="重置" onClick="if(window.confirm('注意:点击\“确认\”将清除您已输入的信息!')) {document.all['signup_form'].reset();return false;}">