trigger click dom js code example
Example 1: js trigger click
var element = document.getElementById('element');
element.click();
Example 2: js trigger click
<a href="#" target="_blank" onclick="javascript:Test("Test");">MSDN</a>
var element = document.getElementById('element');
element.click();
<a href="#" target="_blank" onclick="javascript:Test("Test");">MSDN</a>