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 |
How can we determine whether a php variable is an instantiated object of a certain class?
Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.
What are php libraries?
What is the best way to change the key without changing the value of a php array element?
What is the difference between $var and $$var?
What is a trait in php?
What is a controller php?
What are the new features in php 7?
How to print \ in php. Only \ with out using . or *.
How is the ternary conditional operator used in php?
Is there any way to call a JAVASCRIPT function in PHP in AJAX
i got this error msg in online... how to solve this problem... i couldnot find out as soon as possible send me answer or idea COULD NOT ABLE TO CONNECT DATABASE . Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)