how to click on something using js code example
Example 1: js trigger click
var element = document.getElementById('element');
element.click();
Example 2: javascript click button by id
var button = document.getElementById("button");
button.click();