0
Alternative for window.location.reload() as it seems to be ineffective in sololearn.
4 Respostas
+ 1
While I've not used reload previously, it appears you are calling it wrong.
https://www.w3schools.com/jsref/met_loc_reload.asp
+ 1
history.go(0);
The History interface allows manipulation of the browser session history , that is the pages visited in the tab or frame that the current page is loaded in.
http://net-informations.com/jq/events/refresh.htm
0
tried that too. they dont work in sololearn
0
The History interface allows manipulation of the browser session history , that is the pages visited in the tab or frame that the current page is loaded in.
There are multiple ways to Refresh/Reload a page with jQuery/JavaScript, some are:
location.href = location.href
location.replace(location.pathname)
window.location = window.location
window.self.window.self.window.window.location = window.location
http://net-informations.com/jq/events/refresh.htm