Hacker News new | past | comments | ask | show | jobs | submit login

Yeah, another way of putting it is a link is great for GET requests while a button is better for POST requests (form submissions, AJAX, etc.) If you use a link for these, you have to think about what the href points to, you can’t just use JavaScript alone when it’s a link. If it’s a button, JS is more acceptable due to the inability to open new tabs, etc.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: