javascript if else go to pAGE 1 or other page code example Example: js go to page window.location.href = "http://example.com/new_url";