js redirect user to url code example
Example 1: javascript redirect
window.location.href = "http://mywebsite.com/home.html";
Example 2: redirect users to anmother page in javascript
//insert in the <head> tag
<meta http-equiv="refresh" content="0;url=site.com">