Javascript – How to programmatically click a link with javascript

anchorclickhyperlinkjavascript

Is there a way to click on a link on my page using JavaScript?

Best Answer

document.getElementById('yourLinkID').click();