Try breaking this up into 2 lines:
var obj = document.getElementById ('frmCreateUser');
obj.reset ();
I have a feeling (unsubstantiated) that getElementById returns an
Object, which certainly does not support the reset () method.
You don't show us what frmCreateUser refers to. Are you sure the
object it refers to supports reset ()?
--Tim Sabin
> I've found info about this all over the web, but I can't seem to make
> any of it work for me. I have a form, that I want to have "reset"
(as
> if the reset button had been pushed) after it is submitted. I've
> tried the following: document.getElementById('frmCreateUser').reset()
>
> When I run this however, I get an error stating "This object does not
> support this property or method." Like I said I've seen reference to
> the reset method all over. The normal reset button works, but I want
> to invoke this via code right after the form is submitted.
>
> Any ideas?
>
>
> ------------------------------------
>
> Visit http://aiaiai.com for more groups to joinYahoo! Groups Links
>
>
>
>
--Tim Sabin
.