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 are some new features introduced in php7?
How many types of array supported in php?
How to count a number of words in a string in php?
What is variable and data type?
How to take a substring from a given string?
Do you know what are traits?
How many escape sequences are recognized in double-quoted strings?
How do you check if a variable has not been set in php?
What is the use of header in php?
Explain the difference between static and dynamic websites?
What is design pattern? Explain all including singleton pattern?
How to get no of arguments passed to a PHP Function?
Is python similar to php?
How to redirect https to http url and vice versa in .htaccess?
What are form input html tags?