Built-under window object we use here the child objects are:
1.history objects: url contains the browser visited. We can use it history.go (num); property implementation refresh the page:
history.go (num); // jump to the history of the specified num, num is a positive jump forward, num is negative, jump backward, jump number num;
But we will set num to 0, namely:
history.go (0); jump to the current page, you can achieve refresh the current page;
2.location objects: information about the current url, and history object can not reflect specific information about the url.
With this object:
location.reload (); // refresh the page, the transfer value is true, it said they did not use the cache refresh.
location.assign (url); // will load a new page when url is null character, loading the current page, that is to refresh the current page.