best way to simulate click js code example Example: js simulate click document.getElementById('elementID').click();