Melin's Blog

Latest posts

See all posts
  • Several Subtle Differences Between Common DOM APIs With Overlapping Functionality
    JavaScript’s DOM APIs often look interchangeable. In many cases, two methods can produce the same visible result, which makes it tempting to treat them as stylistic alternatives...
  • Screen.isExtended, getScreenDetails, and Multi-Display Development
    Modern web apps are increasingly used in workspaces with more than one display: dashboards, trading terminals, presentation tools, support consoles, payment flows, and monitorin...
  • Why `keyCode` Is No Longer Recommended: Understanding `event.key` and `event.code`
    By Zhang Xinxu. Adapted from the original article at zhangxinxu.com. Keyboard events look simple until you try to handle real-world input. For years, many JavaScript examples us...
  • Cleverly Using DOM APIs to Escape and Unescape HTML Characters
    Escaping and unescaping HTML is one of those tasks that looks simple until you start thinking about every character, browser behavior, and execution environment. Most developers...
  • Three Ways to Import External CSS in Web Components
    Shadow DOM gives Web Components one of their most useful superpowers: style isolation. A component can define its own markup and CSS without leaking styles into the page or bein...
© 2026 • Melin
Press Esc or click anywhere to close