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

What is php array function?

1235


How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

976


How break and continue while loop in php?

1000


What is $_ get in php?

1056


What are the differences between require and include?

1074


When are you supposed to use endif to end the conditional statement?

991


What is difference between required and include in php?

992


How to write a program to make chess?

1086


How to read a file in binary mode?

1156


Explain the installation of PHP on UNIX systems?

1162


Why are sessions used?

1008


What is global array in php?

1122


Which is better mysql or sql?

1059


How to return ascii value of character in php?

1260


What are the disadvantages of php?

1019