HTMLButtonElement: Command Property(developer.mozilla.org) |
HTMLButtonElement: Command Property(developer.mozilla.org) |
I think I understand how this command attribute API works, but it strikes me as superfluous. Why not just use onclick with maybe currentTarget and/or data attributes?