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
How to parse configuration file in php?
What is the difference between characters and #?
What is the meaning of ‘escaping to php’?
How can we connect to a mysql database from a php script?
How do you end php?
What are include() and require() functions?
What is foreach loop in php?
How to call php function in jquery?
What are php parameters?
How can MYSQL functions be available with PHP?
What type of headers that PHP supports?
What kind of things have you done on the social side?
Which is useful for method overloading?
How many php functions are there?
what is the current salary package in India for a PHP programmer who has 1.5 years experience