hey everybody... (hey dr. nick!),
i have a large form and i want people to be able to reset it. i dont,
however, want people to accidentally click the reset button. is it possible
for a very small popup to open and ask if they want to clear the form? is
this possible without being blocked by a popup blocker?
thanks in advance

Signature
Look Out!
Helter Skelter
Yellow Submarine
Pepperland
PS. Get Back!
Mark Rae - 16 Feb 2006 13:02 GMT
> i have a large form and i want people to be able to reset it. i dont,
> however, want people to accidentally click the reset button. is it
> possible
> for a very small popup to open and ask if they want to clear the form? is
> this possible without being blocked by a popup blocker?
> thanks in advance
You can do this client-side with the JavaScript confirm() method:
http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2005-48,G
GLG:en&q=JavaScript+confirm
Hans Kesting - 16 Feb 2006 13:14 GMT
> hey everybody... (hey dr. nick!),
>
[quoted text clipped - 3 lines]
> this possible without being blocked by a popup blocker?
> thanks in advance
In the button's onclick (the *client side* onclick - you need to set it
through the Attributes collection), use this:
if (!confirm('Really reset?')) return false;
some notes:
- don't shorten it to "return confirm('..')", you do *not* want to
return yet if it's ok, because ASP.Net can add it's own javascript
after this (fire validators, start postback)
- don't forget the final ; as this will separate your code from the
auto-generated following code.
Hans Kesting