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 genrate report in wordpress cms
Write down the code for saving an uploaded file in PHP.
What's the difference between __sleep and __wakeup?
Do you know how can php and html interact?
How can you upload a file using php?
What is php variable?
Where sessions stored in PHP?
How variables are passed through arguments?
Do while loops?
What is the use of Mbstring?
Tell me what library is used for pdf in php?
How to get number of elements in an array?
What is the use of post in php?
Tell us how to create an array of a group of items inside an html form?
Define anonymous classes in php7?