How do I programmatically click a link with javascript? October 17, 2022 by Tarik document.getElementById('yourLinkID').click();