how to click on buton js code example Example: javascript click const element = document.querySelector('element'); element.click();