Here u go the line of code to navigate to a new page. window.location = url; try this window.location = "http://google.com"