This can be solved by using the window.location.reload(); in JavaScript
<meta http-equiv="refresh" content="1"> in HTML (where 1 = 1 second).
Additionally, while using Javascript, there are many alternative commands used for reloading a page such as:-
location = location
location = location.href
location = window.location
location = self.location
location = window.location.href
location = self.location.href
location = location['href']
location = window['location']
location = window['location'].href
location = window['location']['href']
location = window.location['href']