To redirect third party website we can do it by using href. The code snippt is : window.location.href='google.com';