How do I activate existing HTML button, say running the onClick function in specific button?
When using document.getElementById("Button ID").onclick I get the function with the parameters, like the following example. but how do I run the function?
Example, the document.getElementById("Button ID") result is:
ƒ onclick(event) {calculate('ABC',1,8)}
In this example, how do I run calculate('ABC',1,8) function from javascript?