Hi guys,
Can someone please tell me how to code the Reset button (often appears with the Submit button) on interactive web pages? How do I make it just reload the page?
Printable View
Hi guys,
Can someone please tell me how to code the Reset button (often appears with the Submit button) on interactive web pages? How do I make it just reload the page?
what do you mean reload the page? You can't do it with the reset button.
this is how to make the reset button:
Code:
<input type="reset" value="Reset" name="rbutton">
That resets the form that it is in.
I thought there might have been a way of making it reload the page?
I want the page that displays the reset button to be reloaded (so that it's text boxes are refreshed) if the Reset button is used. It just seems to do the same thing as the Submit button at the moment (i.e. redirects the page to ANOTHER page) Should I have both buttons in different forms?
In fact now I think about it... that's probably the answer... :o)
Am I right?
I could code the form containing the Reset button to reload the page (thus refreshing the text boxes) and the form containing the Submit button could call the other page as normal.
Is that how it should be done?
put this code in any of your forms:
That should reset the form WITHOUT reloading the whole page.Code:
<input type="reset" value="Reset" name="rbutton">
Yeah - I tried that and it worked. It clears the text boxes which is what I really wanted. I thought at first that it would be necessary to reload the whole page.
Thanks for all your help!
Gulliver.