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


Please Help Members By Posting Answers For Below Questions

Where is session value stored php?

542


What is the default time in seconds for which session data is considered valid?

580


Explain what does the function get_magic_quotes_gpc() means?

524


Explain the changes in php versions?

538


How to delete file in php?

528






When a conditional statement is ended with an endif?

521


What are the differences between php constants and variables?

513


What enctype is required for file uploads to work?

524


How to replace a text in a string with another text in php?

522


Why php is used?

607


How to set session.gc_maxlifetime properly?

572


How cookies are transported from browsers to servers?

499


Is php used anymore?

527


How does php work?

539


Explain Whitespace Characters?

587