Tagged articles
4 articles
Page 1 of 1
JavaScript
JavaScript
Jun 21, 2025 · Frontend Development

Why document.execCommand('copy') Is Deprecated and How to Master the New Clipboard API

This article explains why the long‑standing document.execCommand('copy') method is now deprecated, outlines its three major drawbacks, and provides a comprehensive guide to using the modern, asynchronous Clipboard API—including code examples for copying text, reading clipboard data, and copying images.

AsyncClipboard APIWeb Development
0 likes · 6 min read
Why document.execCommand('copy') Is Deprecated and How to Master the New Clipboard API
Alibaba Terminal Technology
Alibaba Terminal Technology
Aug 31, 2021 · Frontend Development

Chrome 93 Unveiled: Error Cause, Object.hasOwn, and Key Security Fixes

Chrome 93, released on August 31, 2021, introduces 18 new features including the Error Cause proposal, Object.hasOwn method, port blocking to mitigate ALPACA attacks, removal of 3DES cipher suites, cross‑device WebOTP support, and SVG support in the Clipboard API, all enhancing web development and security.

Browser SecurityChrome 93Clipboard API
0 likes · 14 min read
Chrome 93 Unveiled: Error Cause, Object.hasOwn, and Key Security Fixes
21CTO
21CTO
Jun 13, 2021 · Frontend Development

Add a One‑Click Copy‑to‑Clipboard Button with JavaScript

This guide shows how to create a simple HTML page with a button that copies paragraph text to the system clipboard using the modern Clipboard API, including full code examples and explanations for both copy and cut operations.

Clipboard APIDOMHTML
0 likes · 5 min read
Add a One‑Click Copy‑to‑Clipboard Button with JavaScript