Содержание
- Javascript, get the name of a clicked button
- 4 Answers 4
- onClick to get the ID of the clicked button
- How to do it without inline JavaScript or external libraries
- Modern browsers (2015+)
- 2014 browsers only
- 2013 browsers only
- Cross-browser
- Cross-browser with jQuery
- Which mouse button was clicked onmouseup in javascript?
- Javascript, get the name of a clicked button
- 4 Answers 4
Javascript, get the name of a clicked button
Trying to get the id or name of the button that has been clicked. But I only get an undefined message in the popup when I try to access the id or name of the button. Could someone point me in the right direction to get this working?