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 can we change the maximum size of the files to be uploaded?
What does the array operator '===' means?
What is the function to count elements in an array in PHP?
How to get ip address of a server in php?
How can we pass the variable through the navigation between the pages?
Tell me which function gives us the number of affected entries by a query?
Can we use include ("xyz.php") two times in a php page "index.php"?
Where are php configuration settings stored?
Which function is used to read a single character from a file in PHP.
Which functions are used to remove whitespaces from the string?
What is the main difference between php 4 and php 5?
How do you end a session in php?
What does $this do in php?
What is a php session?
Why do we use namespace in php?