how to call click event of element in javascript code example Example: javascript trigger click on element document.getElementById('myElementID').click();