How to reload or redirect a page after a definite time interval


For reloading or refreshing a page JavaScript is as follows —

window.location.reload();

and for redirect a page after define time interval in JavaScript is as follows–

<script type=”text/javascript”>
setTimeout(“location.href=’https://ruzdi.wordpress.com&#8217;,10000);
</script>

here in the setTimeout() Javascript functon first parameter is the location where to redirect and second parameter is the time interval

In Html inside the head tag use following meta tag for redirection —

<head>

<meta http-equiv=”refresh” content=”10;https://ruzdi.wordpress.com”&gt;

</head>

here in this meta tag on content 10 is the time interval and next address is the address where to redirect

Advertisements
    • alvn
    • May 7th, 2015

    i am not good with programming so was asking if their is a plugin for redirect and return after a set time lapse…..which maybe used to lock downloads and only allows them when advert has bn seeen
    thanks

  1. Uzun zamandır internet sitenizi takip ediyorum teşekkür ederim

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: