I have following tag in my code
<meta http-equiv = "refresh" content="3"/>
This refreshes my page in every 3 seconds. I want to use it conditionally.
That means first time refresh in 3 seconds and later refresh after 40 seconds.
How to achieve it??
use javascript like
int condition = func();
int timeIn = 0;
switch(condition){
case '<Your Value>' : time=3000;break;
.
.
.
}
setTimeout(function(){
window.location.reload();
}, timeIn);