SyntaxFix
Write A Post
Hire A Developer
Questions
you can raise the click event on an element by doing
// this must be done after input1 exists in the DOM var element = document.getElementById("input1"); if (element) element.click();
Example here