Q:

How to make a reset/refresh button using JavaScript?

I would like to know how I can have a button to refresh the page with resetting all the values to theire defaults values in the page.

A:

    <!DOCTYPE html>
      <html>
       <body>
         <button onclick="myFunction()"> Reload page </button>
            <script>
                function myFunction() 
                  {
                      location.reload();
                  }
            </script>
      </body>
    </html> 

