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
What is substr in php?
How to initiate a session in php?
What are the final class and final method?
Where do I run php code?
What is mod_php?
Tell me is it possible to submit a form with a dedicated button?
Name some of the constants in php and their purpose.
What is the use of callback in php?
What is the difference between htmlentities() and htmlspecialchars()?
How do you check if a variable has not been set in php?
What is a definer in mysql?
What type of language is php?
What is the use of imagetypes() method?
What is the use of post in php?
What is multidimensional array in php?