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 php array function?
How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
How break and continue while loop in php?
What is $_ get in php?
What are the differences between require and include?
When are you supposed to use endif to end the conditional statement?
What is difference between required and include in php?
How to write a program to make chess?
How to read a file in binary mode?
Explain the installation of PHP on UNIX systems?
Why are sessions used?
What is global array in php?
Which is better mysql or sql?
How to return ascii value of character in php?
What are the disadvantages of php?