Html Redirect

html redirect
<!DOCTYPE html>
<html>
   <head>
      <title>HTML Meta Tag</title>
      <meta http-equiv = "refresh" content = "2; url = https://www.tutorialspoint.com" />
   </head>
   <body>
      <p>Hello HTML5!</p>
   </body>
</html>
how to redirect a page to another url in html
<meta http-equiv="Refresh" content="0; url=https://www.w3docs.com" />
html redirect
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=https://website.com">
<title>Redirect</title>
</head>
<body>
</body>
</html>
html redirect to another page
<script>
function foo() {
window.location.href = url
}
</script>

Leave a Comment