simulate button click javascript dom code example Example: js simulate click document.getElementById('elementID').click();