To redirect to another webpage in JavaScript, use window.location and mention the website link, where you want to redirect.
<html> <body> <p>Redirecting to another website</p> <script> window.location = "https://www.qries.com"; </script> <p>This page will redirect to Qries.com</p> </body> </html>