HTML: How to redirect to another page

 
 <meta HTTP-EQUIV="REFRESH" content="0; url=http://whatever">

Note the syntax where content=”0; is not a typo. The content field contains both the URL to be redirect to and the delay (in seconds).

In general, you may want to provide a message and therefore a non=zro delay so tat the user can read any information you want to provide.

<html> 
<head>
 <meta HTTP-EQUIV="REFRESH" content="5; url=http://whatever">
 </head>
<body>
<p>You will be redirected to <a href="http://whatever">The RTools pypi link in  a few seconds.</a> Please update your bookmark.</p>
</body>
</html>
Please follow and like us:
This entry was posted in Computer Science and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published.