how to raise a click event in js code example Example: js trigger click var element = document.getElementById('element'); element.click();