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
Where is session value stored php?
What is the default time in seconds for which session data is considered valid?
Explain what does the function get_magic_quotes_gpc() means?
Explain the changes in php versions?
How to delete file in php?
When a conditional statement is ended with an endif?
What are the differences between php constants and variables?
What enctype is required for file uploads to work?
How to replace a text in a string with another text in php?
Why php is used?
How to set session.gc_maxlifetime properly?
How cookies are transported from browsers to servers?
Is php used anymore?
How does php work?
Explain Whitespace Characters?