click-all-buttons-matching-class-on-page.js

 avatar
Andy
javascript
a month ago
131 B
4
Indexable
Never
var buttons = document.getElementsByClassName('button-class');
for(var i = 0; i < buttons.length; i++)  
     buttons[i].click();
Leave a Comment