←back to thread

Just use a button

(gomakethings.com)
285 points moebrowne | 2 comments | | HN request time: 0.472s | 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 #
1. Zak ◴[] No.45775773[source]
> like a hyperlink that navigates you through the web app

You mean an <a> tag?

replies(1): >>45777854 #
2. array_key_first ◴[] No.45777854[source]
Well it might be a SPA so it's not a real link but rather just a function call + pushing some stuff to history and updating the URL (if you're lucky!)