Hi,
Most probably you may have encountered a situation where you have to refresh the web page in your code.
Here is, how it could be done using JavaScript.
Here on button click it will call the function ‘refresh_yourPage()’, and it will refresh the page!
Link to this post!