how to pass to next html when login is successful in javascript code example Example: javascript link to another page window.open("http://mywebsite.com/home.html")