How to reload current page in Javascript

There are 3 ways how to achieve this task.

[javascript]
<input value=’Reload Page’ onclick=’window.location.reload()’ type=’button’ />
[/javascript]

[javascript]
<input value=’Reload Page’ onclick=’history.go(0)’ type=’button’ />
[/javascript]

[javascript]
<input value=’Reload Page’ onclick=window.location.href=window.location.href’ type=’button’ />
[/javascript]

The button click is used to fire the loading. You can assign the event to hyperlink or trigger event by jquery