how to go to a new website in javascript code example Example: javascript go to url window.location = url;