how to auto click button in javascript code example
Example 1: javascript automatic click
const element = document.querySelector('element');
element.click();
Example 2: autoclick button if refresh page html
window.onload=function(){
document.getElementById("linkid").click();
};