Im trying to program something using JQuery that will search a webpage for every instance of a certain word and then click on it. How would I do this?
I currently have something like this:
$(document).ready(function(){
function follow(texttofind, setinterval){
var buttons = $( "*:contains('"texttofind"')" );
var i = 0;
interval = setInterval(function(){
for(i <= buttons.length; i++){
$(buttons[i]).scrollIntoView();
buttons[i].click();
}
},setinterval);
}
});
Aucun commentaire:
Enregistrer un commentaire