logoalt Hacker News

christophilustoday at 2:23 AM2 repliesview on HN

Buttons already have actions and methods and many other useful things: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...

I don’t see how this proposal is any different than what already exists.


Replies

alexpetrostoday at 3:47 AM

You linked to `formaction`, which allows buttons to control the action of their nested form. This proposal allows buttons to make actions independent of forms, and the blog has an example of how independent button actions compose nicely with the existing `formaction` and `formmethod` controls.

Kuyawatoday at 3:08 AM

TIL, thank you