3 ms·
Both do the same. (2) is more modern syntax as onclick DOM attributes are deprecated. https://stackoverflow.com/ https://stackoverflow.com/ might be better sui
by mtmail 8y ago
Both do the same. (2) is more modern syntax as onclick DOM attributes are deprecated.
https://stackoverflow.com/ https://stackoverflow.com/ might be better suited for specific programming language questions.
- maxraz 8y agoThank you, Sir.