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

How to genrate report in wordpress cms

2385


Write down the code for saving an uploaded file in PHP.

1116


What's the difference between __sleep and __wakeup?

1137


Do you know how can php and html interact?

1062


How can you upload a file using php?

1161


What is php variable?

1059


Where sessions stored in PHP?

1054


How variables are passed through arguments?

997


Do while loops?

1028


What is the use of Mbstring?

1051


Tell me what library is used for pdf in php?

1065


How to get number of elements in an array?

1053


What is the use of post in php?

1024


Tell us how to create an array of a group of items inside an html form?

1029


Define anonymous classes in php7?

1135