Welcome to W3Courses
 Like Us on Facebook

How to Create a Reload Button which will Reload the Webpage upon Clicking using JavaScript

The following code will add a reload button to your webpage. This button will reload your webpage when clicked.

Place the following code in the body section of your webpage where you want to display the button

<INPUT TYPE="button" VALUE="Reload" onClick='parent.location="javascript:location.reload()"'>