planetthoughtful said the following on 5/22/2006 8:21 PM:
Damn - that just left me more confused. Unfortunately, when I Google I
tend to find results for form validation.
Did you find anything when Googling the archives about quoting what you
are replying to?
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.
<URL: http://www.safalra.com/special/googlegroupsreply/ >
Whereas, I just want to be able to prompt if a value has been edited
but not submitted.
That is precisely what the thread Rob pointed you to deals with - how to
tell if a form field has been changed or not. You check to see if
anything in the form has been changed. If it has, then you prompt. If it
hasn't, then you don't prompt.
Since you are wanting to check it before leaving the page, you look into
onunload of the window object.
Onsubmit of the form, you set a variable that the unload checks for. If
the form is submitted, you don't prompt.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/