Lately, I've stumbled upon an issue when attempting to execute a function with multiple arguments.
<button type = "button" id = "clickmepls" onclick = killButton("clickmepls", "grave1")> Click me please </button>
The definition of the function is as follows:
function killButton(buttonname, graveID){
/* some code */
}
Upon running the script, I encounter the following error: https://i.sstatic.net/dWpvO.png
This error occurs whenever there are more than one argument in the function - the first one is displayed in the error message, and the arrow always points to what should come next.
What could be causing this issue?