in reply to Browser Manipulation
First off, this is only for one text box.
It's a hack, but hey . . .<body onLoad='document.formFoo.txtFoo.value=""'> <form name="formFoo"> <input type=text name="txtFoo"> </form> </body>
The concept is to set the controls to a default value when the document is loaded. If you want to clear a text box, just use the empty string. For radio buttons and check boxes, you have to turn them on/off explicitly.
This could get nasty if you have a lot of controls to 'reset'
UPDATE: see Zoogie's reply below ->
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Browser Manipulation
by mrmick (Curate) on Jul 03, 2000 at 18:00 UTC |