restart page javascript function code example
Example 1: javascript redirect
window.location.href = "http://mywebsite.com/home.html";
Example 2: ajax run function after page load
$(document).ready(function() {
// Code to run as soon as the page is ready
})