how can refresh current page automatically, without press
any button and anchor tag.

Answers were Sorted based on User's Feedback



how can refresh current page automatically, without press any button and anchor tag...

Answer / satya

It is possible by using AJAX(Asynchronous Javascript And Xml).

Is This Answer Correct ?    25 Yes 8 No

how can refresh current page automatically, without press any button and anchor tag...

Answer / anuj

<meta http-equiv="refresh" content="2;url=index.htm">

Is This Answer Correct ?    17 Yes 3 No

how can refresh current page automatically, without press any button and anchor tag...

Answer / sheeba

using meta tag

<meta http-equivalent=refresh>

Is This Answer Correct ?    20 Yes 7 No

how can refresh current page automatically, without press any button and anchor tag...

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

how can refresh current page automatically, without press any button and anchor tag...

Answer / dhir

For this we can use inner.html to refresh page automatically.

Is This Answer Correct ?    7 Yes 2 No

Post New Answer

More PHP Interview Questions

How can we determine whether a php variable is an instantiated object of a certain class?

0 Answers  


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.

0 Answers   Amazon, FGD,


What are php libraries?

0 Answers  


What is the best way to change the key without changing the value of a php array element?

0 Answers  


What is the difference between $var and $$var?

0 Answers  






What is a trait in php?

0 Answers  


What is a controller php?

0 Answers  


What are the new features in php 7?

0 Answers  


How to print \ in php. Only \ with out using . or *.

7 Answers   American Solutions,


How is the ternary conditional operator used in php?

0 Answers  


Is there any way to call a JAVASCRIPT function in PHP in AJAX

4 Answers  


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)

3 Answers   Quest,


Categories