sorry all, does this not solve it?
I guess use onbeforeunload to trigger an event?
http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm



On Nov 13, 2008, at 1:11 PM, Tom ('Mas) Pickering wrote:

Brett -

Here's the problem: Different browsers handle that differently. Firefox 2+ won't reset the fields on Reload, only on Shift-Reload. IE 6.0+ resets on a simple Refresh. What is the teacher using?

At 11:34 AM 11/13/2008, you wrote:
To Andrew:

What I am trying to do is get a form field to reset a value back to the default selected when a user clicks on the refresh or reload button in the browser, not the page (meaning I am not using <input type="reset" /> to reset the fields). So, for example, lets say this code is:

<form action="processorformquantity.pl" 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>
<br /><input type="submit" value="Submit" />
</form>

As you see the code above displayed in the browser, 0 will automatically be shown in the dropdown box (let's call it the default#). But, if the user changes the default# to let's say 2, and then decides to reset the page for whatever reason using the browser's default refresh or reload button, the user-selected 2, will change back to default# (or 0).

The reason is because for some reason, unknown to me, it is a major part of my grade.

On Thu, Nov 13, 2008 at 12:00 PM, Todd Budnikas <[EMAIL PROTECTED] > wrote:
I guess use onbeforeunload to trigger an event?
http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm




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

Reply via email to