how to click button automatically using javascript end of the function code example
Example: on load hit click event js
window.onload=function(){
document.querySelector("body").click();
};
window.onload=function(){
document.querySelector("body").click();
};