How to redirect a web page with JavaScript

2 Answers

0 votes
let URL = "https://www.seek4info.com";

window.location.href = URL;

    
    
    
/*
run:
    

    
*/

  

 



answered Feb 2, 2021 by avibootz
0 votes
<!DOCTYPE html>
<html>
  <body>
    <script>
      let URL = "http://www.buyfrompictures.com/";
      window.location.href = URL;
    </script>
  </body>
</html>

 



answered Feb 2, 2021 by avibootz
...