I've got a form on a page where the user types something in and then a result is returned and displayed on the page. Is it possible for me to have a button that will both, clear the search results and the form simultaneously?
I know that you can use the
<input type="reset" value="Reset"/>
<input type="button" value="Clear Results" onClick="window.location.reload()">
If you want the functionality of both of the snippets you posted, you can simply combine them.
<input type="reset" value="Reset" onClick="window.location.reload()">
(There, now you can accept my answer XD)