keeping data on page with windows reload jquery code example
Example 1: reload page jquery
location.reload();
Example 2: refresh page on button click jquery
$('#something').click(function() {
location.reload();
});
location.reload();
$('#something').click(function() {
location.reload();
});