Answers for "akhil insta request"

0

akhil insta request

//send request for a time limit 
function sendRequest(_timeOut,_htmlElement){
    var i=0;
    let interval = setInterval(function(){
        var buttonList = document.getElementsByClassName(_htmlElement);
        buttonList[i].click();
        console.log("request send"+i)
        i++;
    },2000)

    setTimeout(function(){
        clearInterval(interval);
        console.log("***** interval cleared *****");
    },_timeOut)
}

sendRequest(200000,"wpO6b") //working
Posted by: Guest on October-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language