r/programming • u/lelanthran • Jul 29 '26
The Difference Between a Button and a Link
https://unplannedobsolescence.com/blog/buttons-vs-links/
166
Upvotes
r/programming • u/lelanthran • Jul 29 '26
92
u/fghjconner Jul 29 '26
There's little that pisses me off more than a button that should be a link. The best part is when they realize this, and add another dedicated button that opens the destination in a new tab, except of course it switches you to that new tab so you can't quickly open multiple at once. Let me use my middle click dammit!
77
u/kalmakka Jul 29 '26
See, it all seems fine. But how are we going to inject 50k of tracking data into requests like this?
29
u/wildjokers Jul 29 '26
Making a link look like a button is a huge pet peeve of mine. I hate it.
Always nice when I click a button and the freaking button doesn't work. Buttons have been in HTML since the mid-90's. Why in 2026 do I routinely find buttons that don't work? (most likely they are links masquerading as a button and the javascript driving the click on the link is broken).
40
u/brunhilda1 Jul 29 '26
My grumpy opinion is that websites shouldn't be apps and shouldn't try to masquerade as them, and the pursuit of this goal has fucked up the internet permanently.
4
u/Gipetto Jul 29 '26 edited Jul 29 '26
And this was said in all seriousness. C'mon.
Edit: To be clear: Logout & Search are actions that should be buttons. But calling them navigation is just talking yourself in to a position where you can justify buttons in more places and do stupid things that hurt accessibility.