how to redirect onther page using javascruipt in php code example Example: javascript redirect window.location.href = "http://mywebsite.com/home.html";