How to redirect to another web page inside an HTML page

3 Answers

0 votes
<!-- HTML -->

<!-- redirect happens immediately when page loads -->

<meta http-equiv="refresh" content="0; url=https://collectivesolver.com">


<!--
0 = delay in seconds
url= = destination page
-->


<!-- Example -->

<html lang="en" data-theme="light" dir="ltr">
<head>
  <meta charset="UTF-8" />
  <title>Your Title</title>
  <meta http-equiv="refresh" content="0; url=https://collectivesolver.com">
</head>

 

 
 

 

 



answered Jun 19 by avibootz
edited Jun 19 by avibootz
0 votes
<!-- JAVASCRIPT -->

<!-- redirect happens immediately when page loads -->

<!DOCTYPE html>
<html>
<head>
  <script>
    window.location.href = "https://collectivesolver.com";
  </script>
</head>
<body>
  <p>Redirecting…</p>
</body>
</html>

 



answered Jun 19 by avibootz
0 votes
<!-- JAVASCRIPT -->
 
<!-- At the bottom of the <body> - page loads first, then redirect -->
 
<!DOCTYPE html>
<html>
<head>
  <title>Redirecting</title>
</head>
<body>
  <p>You will be redirected shortly…</p>

  <script>
    window.location.href = "https://collectivesolver.com";
  </script>
</body>
</html>

 



answered Jun 19 by avibootz
...