I guess use onbeforeunload to trigger an event?
http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm


On Nov 13, 2008, at 11:40 AM, Brett Patterson wrote:

The Reload Current Page button in Firefox, and I think the Refresh Page button in IE, and whatever those buttons are called in other browsers. NOT with an input button to reset. Thanks.

On Thu, Nov 13, 2008 at 11:31 AM, Todd Budnikas <[EMAIL PROTECTED]> wrote: Do you just mean a form reset input button? <input type="reset" value="Reset!">? You lost me on the "but instead using the browser's button.. what button?


How do I get a form field to reset itself back to its default value if the user has changed it?

Without clicking on a refresh/reload button on the page but instead using the browser's button.

The XHTML Transitional code I have is:

<td><div class="inmiddleof">
          <label for="hsQty"></label>
          <form action="" name="heartSearch">
            <select name="hsQty" id="hsQty" onchange="proc()">
            <option value="0">0</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
                    </select>
                    </form>
        </div></td>

<td><div class="inmiddleof">
<form action="" name="hSearchoutput">
<input type="text" name="hsTotal" id="hsTotal" />
</form>
        </div></td>




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to