Hello friends,
How to refresh meta tag?
Hello friends,
How to refresh meta tag?
The <meta> tag is often found at the top of an HTML document between the </title> and the </head> tag. It has a variety of uses, but one of the most common is the client-pull function, used to either reload or redirect pages after a specified amount of time.
Meta refresh is a method of instructing a web browser to automatically refresh the current web page or frame after a given time interval, using an HTML meta element
the syntax looks like this:
<meta http-equiv="Refresh" content="30">
example is given below:
<head>
<meta http-equiv="refresh" content="30">
</head>
I hope it helps you...
website development company in india | website designer in bangalore | Website company in India | Magento expert in california | Wordpress developer in california | Woocommerce developer in california | Website designer in california | Laravel developer in USA | Shopify developer in USA | website agency in USA |
A meta tag is a tag (that is, a coding statement) in the Hypertext Markup Language (HTML) that describes some aspect of the contents of a Web page. There are many meta tags and html-tags and obviously they don't all influence the search result.
█ Cheap VPS Hosting | $1 VPS Hosting
█ Windows VPS Hosting | Windows with Remote Desktop Access
█ Cheap Dedicated Servers | Linux Dedicated Server Hosting
What is refresh meta tag ?
Meta revive tags have exactly drawbacks: if a page redirects excessively awful rapidly (less over 2-3 seconds), utilizing the "Back" catch on the following page might foundation A percentage browsers with move back of the redirecting page, whereupon those redirect will happen once more.
You can also do a refresh with PHP and Javascript if you're not familiar with meta tags.
PHP:
<?php
$page = $_SERVER['PHP_SELF'];
$sec = "10";
?>
Javascript:
<script>
var time = new Date().getTime();
$(document.body).bind("mousemove keypress", function(e) {
time = new Date().getTime();
});
function refresh() {
if(new Date().getTime() - time >= 60000)
window.location.reload(true);
else
setTimeout(refresh, 10000);
}
setTimeout(refresh, 10000);
</script>
But as people have mentioned, here's how you do it with the meta tag:
<meta http-equiv="refresh" content="5" >
█ Sharktech - VPS, Colocation, and Dedicated servers since 2003.
█ Mike Gazzerro
█ Los Angeles, Denver, Chicago, Amsterdam
█ Have your own ASN? Let us scrub your traffic. We have the best DDOS protection.