那你可以改一下这个 Reset 键嘛!
<input type=text name=txt value="12345"><br>
<input type=button value=reset onclick="document.all.txt.value=''">
你看这能不能够达到你想要的效果呢?

解决方案 »

  1.   

    不可以得到一个input或select的原始值么?
      

  2.   

    你试试下面的效果,算是给你一个思路:
    <body onload="document.all.hidtxt.value=document.all.txt.value">
    <input type=text name=txt value="12345"><br>
    <input type=button value=reset onclick="document.all.txt.value=document.all.hidtxt.value;">
    <input type=hidden value="" name="hidtxt">
    </body>
      

  3.   

    你可以用hidden变量,把原始值保存下来!
    然后用 meizz(梅花雨) 所说
      

  4.   

    同意楼上观点
    还可以2个form也行啊<form name="no1" method="post">
    <input type="text" name="txt1">
    <input type="reset" value="取消">
    </form>
    <br>
    <form name="no2" method="post">
    <input type="text" name="txt2">
    <input type="reset" value="取消">
    </form>
      

  5.   

    <input value=21 ondblclick=alert(this.defaultValue)>