click an element to call javascript code example Example: javascript trigger click on element document.getElementById('myElementID').click();