Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You’re missing the point of the article entirely.

The author argues to NOT use fake anchor tags like <a href="#"> and then add functionality to it via JavaScript. Instead you should use <button type="button">.

Either way, JavaScript is required.

What you’re suggesting means your link is actually a link to another page, which works without JavaScript and that’s not the point of the article.



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

Search: