Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

click button javascript

// Create variable for what you are trying to click
let button = document.querySelector("#IDofItem");

// Click the button

if (button) {
  button.click();
}
else {
  console.log("Error");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #click #button #javascript
ADD COMMENT
Topic
Name
7+4 =