Melin's Blog

Latest posts

See all posts
  • A Detailed Introduction to JavaScript’s URL() and URLSearchParams() APIs
    Parse URLs, manage query parameters, and resolve relative paths with native JavaScript. Author: zhangxinxu Originally published: August 26, 2019 Editorial note: This edition upd...
  • Watching the DOM: Five Ways to Detect Changes in JavaScript
    Understand what changed, choose the right signal, and keep your UI in sync. Adapted from zhangxinxu’s original article. Code examples are extracted and condensed from the suppli...
  • Quick Tip: The Difference Between `innerText` and `textContent`
    How layout, hidden elements, and line breaks change the text JavaScript returns. For years, I treated innerText and textContent as interchangeable. Browser compatibility encoura...
  • The Web Locks API: A Lifesaver When It Matters
    How to coordinate browser tabs, prevent competing uploads, and keep asynchronous work under control. By zhangxinxu . Adapted from the original article, with practical excerpts f...
  • A Quick Guide to `window.name`: What It Does and When It Helps
    A small browser property that can survive a page change—and a reminder that browser history shapes today’s APIs. Most JavaScript state disappears when you navigate to another pa...
© 2026 • Melin
Press Esc or click anywhere to close