What about something simple like:
document.getElementById('elementID').click();
Supported even by IE.
More Related Contents:
- Explain the encapsulated anonymous function syntax
- Remove all elements contained in another array
- Using async/await with a forEach loop
- JSON.stringify() array bizarreness with Prototype.js
- JavaScript : For loop with timeout
- Cannot set boolean values in LocalStorage?
- JavaScript: undefined !== undefined?
- How to call an async function inside a UseEffect() in React?
- Determine if an element has a CSS class with jQuery
- Scroll smoothly to specific element on page
- Group by array and add field and sub array in main array
- Promise.all behavior with RxJS Observables?
- JavaScript braces on new line or not? [closed]
- javascript node.js next()
- Is there “0b” or something similar to represent a binary number in Javascript
- Destroy chart.js bar graph to redraw other graph in same
- Deep comparison of objects/arrays [duplicate]
- How to check browser for touchstart support using JS/jQuery?
- How to set image to fit width of the page using jsPDF?
- Get current cursor position in a textbox
- How to check if an element is in the view of the user with jquery
- How to add and remove classes in Javascript without jQuery
- What are some methods to debug Javascript inside of a UIWebView?
- Preloading images in HTML
- Get the content (text) of an URL after Javascript has run with PHP
- How to disable minimize, maximize button in the browser?
- Does the attr() in jQuery force lowercase?
- Memoization of promise-based function
- Is it possible to wait until all javascript files are loaded before executing javascript code?
- How to decode a JSFuck script?