When i am using interval function, clearinterval not works properly.
EXAMPLE:
function pageload()
{
var url="../webapplication1/default.aspx";
var fininterval=intervla(Redirect,1000,url);
}
function Redirect()
{
if(okclick==true)
{
clearinterval(fininterval);
location.href= url;
}
}
when the okclick becomes true then the clearinterval function not clears the interval,
the Redirect function executes n times again.
Arulanand Arulanand26 reputationPosted Jan 28, 2020, 5:41 PM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Jan 29, 2020, 5:56 AM EST