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
Is age an interval or ratio?
Is php better than python?
What is the maximum size of a database in mysql?
Why do we use hooks?
What is php session start?
What is framework? How it works? What is advantage?
Why triggers are used in mysql?
What are the array functions in php?
What is php mean?
The left association operator % is used in PHP for?
Tell me what is htaccess?
Why session is required?
How to create a directory?
What is php and why we use it?
Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?