Log in

View Full Version : How to refresh meta tag?



ninadordev
01-29-2018, 06:37 AM
Hello friends,

How to refresh meta tag?

swikriti.sharma
01-29-2018, 11:51 AM
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.

sinelogixtech
01-31-2018, 07:18 AM
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...

RH-Calvin
02-01-2018, 03:57 PM
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.

acmastechnologi
02-12-2018, 11:26 AM
What is refresh meta tag ?

Dam Ponting
02-13-2018, 05:46 AM
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.

zomgmike
02-14-2018, 07:25 PM
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" >