js click on an element code example
Example 1: javascript trigger click on element
document.getElementById('myElementID').click();
Example 2: javascript click
const element = document.querySelector('element');
element.click();
Example 3: js trigger click
<a href="#" target="_blank" onclick="javascript:Test("Test");">MSDN</a>