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

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.


Live Demo

<!DOCTYPE html>
      <title>HTML Meta Tag</title>
      <meta http-equiv = "refresh" content = "10; url =" />
      <p>Hello HTML5!</p>

Updated on: 30-Jul-2019

5K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started