javascript click button by id

JavaScript
const element = document.querySelector('element');
element.click();document.getElementById("some_elment_id").click();var button = document.getElementById("button");
button.click();
Source

Also in JavaScript: