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

What is isset in php?

592


What is Apache's configuration file typically called?

632


Which escape sequences can be used in single quoted strings in php?

593


What is the difference between require and include in php?

562


What is the method to execute a php script from the command line?

623






How can you retrieve data from the mysql database using php?

602


What are the features of object-oriented programming in php?

561


Do you know what is the use of the function 'imagetypes()'?

543


Explain Type juggling?

627


How many functions are there in php?

585


Write the statements that are used to connect php with mysql

560


what does this symbol mean in php?

695


What is artisan in php?

561


"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.

1591


What is a persistence cookie?

570