←back to thread

Just use a button

(gomakethings.com)
284 points moebrowne | 1 comments | | HN request time: 0s | source
Show context
giancarlostoro ◴[] No.45774524[source]
Weird, I always use buttons when I can, unless what I need is not actually a button, but something that performs and on-click sort of like a button, like a hyperlink that navigates you through the web app.
replies(2): >>45774943 #>>45775773 #
ervine ◴[] No.45774943[source]
I guess if it doesn't update the url, it's a button.

If it changes the url, it should be a link. At least that's how I've always done it.

replies(1): >>45775119 #
cassepipe ◴[] No.45775119[source]
Is is not okay to wrap a link inside a button ? I guess not

Which elements are allowed to wrap which is unclear to me

replies(3): >>45775243 #>>45775937 #>>45776709 #
1. cferdinandi ◴[] No.45775937{3}[source]
Literally absolutely never ever do this.