How to redirect URL to the different website after few seconds?

HTMLWeb DevelopmentFront End Technology

Page redirection is a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection.

To redirect URL to a different website after few seconds, use the META tag, with the content attribute. The attributes set the seconds.

Redirect URL

The following is an example of redirecting current page to another website in 10 seconds. The content attribute sets the seconds.

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Meta Tag</title>
      <meta http-equiv = "refresh" content = "10; url = https://www.tutorialspoint.com" />
   </head>
   
   <body>
      <p>Hello HTML5!</p>
   </body>
</html>
raja
Published on 07-Feb-2018 09:31:50
Advertisements