how can refresh current page automatically, without press
any button and anchor tag.
Answers were Sorted based on User's Feedback
Answer / satya
It is possible by using AJAX(Asynchronous Javascript And Xml).
| Is This Answer Correct ? | 25 Yes | 8 No |
Answer / anuj
<meta http-equiv="refresh" content="2;url=index.htm">
| Is This Answer Correct ? | 17 Yes | 3 No |
Answer / 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 |
Answer / dhir
For this we can use inner.html to refresh page automatically.
| Is This Answer Correct ? | 7 Yes | 2 No |
What are the __construct() and __destruct() methods in a php class?
Explain php parameterized functions.
What is php? Why it is used?
What language is php written in?
What is the best way to avoid email sent through php getting into the spam folder?
Explain me is multiple inheritance supported in php?
What is different types of visibility?
Why php script is not running in browser?
How many types of session are there?
How to differentiate isset and empty
6 Answers A1 Technology, Dass Infotech, Microface,
Explain me the difference between include and require?
What are different ways to redirect from on page to other?