Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

click all buttons on page javascript

   // Get all buttons with the name 'all' and store in a NodeList called 'buttons'
   var buttons = document.getElementsByName('all');

    // Loop through NodeList and call the click() function on each button
    for(var i = 0; i <= buttons.length; i++)  
       buttons[i].click();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #click #buttons #page #javascript
ADD COMMENT
Topic
Name
6+6 =