In JavaScript I can assign onclick by traditional way:
button.onclick = engineStop();
But how can I assign to onclick a function with parameter(s)?
This does not work >>
button.onclick = engineStop(this);
The function needs to receive this parameter to know which button has been clicked on.
Please advice... (no jQuery)