how to make a fake onclick event on an element in js code example Example: javascript trigger click on element document.getElementById('myElementID').click();