Auto Refresh Webpage after every x Second or Minute using Meta Tag?



Auto Refresh Webpage using HTML Meta Tag

If you have a use-case where you want to refresh a webpage on the client browser every x seconds or minute, you can make use of the meta tag in the head section with attributes http-equiv="refresh" and content with a value of the interval in which the page should be refreshed in seconds.


Example: Refresh Page every 5 minutes
<html>
<head>
<meta http-equiv="refresh" content="300">
</head>
....
....
</head>
</html>

Note: Make sure to add the meta tag in the head section of the HTML page.

-


Have Questions? Post them here!

Topics Coverage:


๐ŸŽ‰ We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.

Follow Us: GitHub | Facebook | Twitter | Instagram