0

How can you pass a value with the click in JS like you can in HTML with onclick="myFunction(value)"

All methods I know: element.onclick = myFunction, element.addEventListner("click", myFunction) don't open up for passing a value with.

Heretic Monkey
  • 11,687
  • 7
  • 53
  • 122
Shesch
  • 41
  • 6

0 Answers0