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

Is age an interval or ratio?

553


Is php better than python?

557


What is the maximum size of a database in mysql?

531


Why do we use hooks?

510


What is php session start?

530






What is framework? How it works? What is advantage?

500


Why triggers are used in mysql?

544


What are the array functions in php?

539


What is php mean?

572


The left association operator % is used in PHP for?

586


Tell me what is htaccess?

495


Why session is required?

532


How to create a directory?

624


What is php and why we use it?

502


Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?

583