how to go to different page of yours in javascript code example Example: js go to page window.location.href = "http://example.com/new_url";