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 is the use of mysql_real_escape_string() function?
What is the difference between pop3 IMAP and MAPI?
Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want to retrive that variable value . what is the syntax?
What is the use of strpos in php?
How to find length of an array in php ?
Would you initialize your strings with single quotes or double quotes?
How do I find out the number of parameters passed into function9?
How to access standard error stream in PHP?
How is traits used in php?
What is the use of "echo" in php?
What is namespace in php?
What does a special set of tags do in php?