Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can refresh current page automatically, without press
any button and anchor tag.

Answer Posted / ramesh

To refresh a page after a pre-defined time, without pressing
any button ot anchor tag, you can use the follwing:
var t=setTimeout("javascript statement",milliseconds);

The setTimeout() method returns a value - In the statement
above, the value is stored in a variable called t. If you
want to cancel this setTimeout(), you can refer to it using
the variable name.
window.location.reload();
var t=setTimeout("window.location.reload()",5000);

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use php variable in javascript?

1013


Is php object oriented?

923


What is a query give example?

987


What is session in PHP. How to remove data from a session?

977


With a heredoc syntax, do I get variable substitution inside the heredoc contents?

1084


What is the difference between "echo" and "print" in php?

909


What is $_ get in php?

1008


Is php faster than javascript?

933


How a variable is declared in php?

950


Why php 7 is faster?

964


Do you know what does mvc stand for and what does each component do?

960


how to track user logged out or not? when a user is idle?

912


What is the use of $_server and $_env?

1047


Does wordpress run on php 7?

959


How to Retrieve the Session ID of the Current Session?

975