trigger a click event from a different method code example Example: js trigger click var element = document.getElementById('element'); element.click();