@ghjk
first, there is no native reset() method to the String object (doing a reset I'd rather define
element.value = "";)
second, sumbit/reset buttons are supposed to be used in forms (mind that you can have multiple forms and a submit/reset button works only on the form, where it is defined). you should rather use the normal click buttons if you don't have a <form> element*.
* - semantically it doesn't make sense to have a submit button without the corresponding form (i.e. without something to submit)