John
John

Reputation: 1189

Refreshing the page using Ajax

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

Upvotes: 3

Views: 263

Answers (2)

M A Hossain Tonu
M A Hossain Tonu

Reputation: 1467

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

location.reload()

or

history.go(0)

or

location.href = location.href

Upvotes: 0

Christian Mann
Christian Mann

Reputation: 8125

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

location.reload();

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

Upvotes: 3

Related Questions