News for hackers. Stuff that matters.
Re:Just Use a Button by tln on Friday October 31, 2025 @04:12PM (#45776191)
Yes! If it's clickable, it should either be a button or a link.
Re:Just Use a Button by culi on Friday October 31, 2025 @04:27PM (#45776337)
there are plenty of other vanilla html elements that are clickable. <details>, <input type=[button|checkbox|radio|file|etc]>, <label>, <select>, etc
Re:Just Use a Button by tln on Saturday November 01, 2025 @09:59AM (#45781702)
True although the built-in click behavior is sufficient on these, ie you should not need to add onclick. Which should be for <button> and <a>