Start 提交收录
Please don’t mess with links

Please don’t mess with links

maurycyz.comDR 46 正常访问 300 浏览

开发编程 A short essay on why real hyperlinks matter: they can be opened in new tabs, copied, bookmarked, and read by search engines and screen readers, unlike JavaScript buttons or popups.

主编点评

仅供参考
Please don’t mess with links 页面预览

The piece is a concise, opinionated argument rather than a tutorial, using concrete browser behaviors (ctrl-click, alt-click, hover preview, keyboard tabbing) to show what button-based navigation breaks. It suits front-end developers and accessibility-minded designers who need a quick, quotable case

站点介绍

This page is a personal blog post arguing that web developers should stop replacing ordinary hyperlinks with JavaScript-driven buttons or popup triggers. It is published on Maurycy Z.’s personal site, alongside sections on astrophotography and yearly archives.

The core argument is that a real link supports a wide range of user behaviors that a button does not: opening in a new tab or window, saving as a file, copying the URL, activating via keyboard, being indexed by search engines, and being announced by screen readers. The author also notes that even when a real link is used, attaching a click handler that opens a popup breaks loading progress, cancellation, error pages, and multi-tab workflows.

The post is aimed at front-end developers, accessibility advocates, and anyone who maintains navigation on a website. It is especially relevant to teams deciding between anchor elements and JavaScript click handlers for menus, cards, or external links.

Readers should treat it as a design principle rather than a technical specification: it explains why native links are more robust and consistent, but does not provide code samples or migration steps. The closing point is that links behave predictably across browsers and assistive tools, while imitation buttons often leave users unable to close what they opened.

评论与评分

0

还没有评论,来写下第一条评价吧。

写下第一条评论

邮箱不会被公开,带 * 的为必填项。

为这个站点评分

点击星星打分,评分可选,再次点击已选星星可取消。