Page refresh with Ajax

How to refresh a page using Ajax? I mean pure Ajax, without using any libraries

+3
source share
2 answers

You don't need Ajax - just vanilla javascript will do:

location.reload();

http://www.netlobo.com/javascript_location_reload.html

+3
source

There are several ways to reload the current page using javascript:

location.reload()

or

history.go(0)

or

location.href = location.href
0
source

Source: https://habr.com/ru/post/1771449/


All Articles