Skip to main content
CSS-Tricks
  • Articles
  • Videos
  • Almanac
  • Newsletter
  • Guides
  • DigitalOcean
  • DO Community
Search

Articles Tagged
JavaScript

151 Articles
{
,

}
Direct link to the article Named Element IDs Can Be Referenced as JavaScript Globals
global scope JavaScript

Named Element IDs Can Be Referenced as JavaScript Globals

Did you know that DOM elements with IDs are accessible in JavaScript as global variables? It’s one of those things that’s been around, like, forever but I’m really digging into it for the first time.

If this is the first …

Avatar of Matteo Mazzarolo
Matteo Mazzarolo on Sep 27, 2022
Direct link to the article Comparing Node JavaScript to JavaScript in the Browser
JavaScript node

Comparing Node JavaScript to JavaScript in the Browser

Being able to understand Node continues to be an important skill if you’re a front-end developer. Deno has arrived as another way to run JavaScript outside the browser, but the huge ecosystem of tools and software built with Node mean …

Avatar of Hugh Haworth
Hugh Haworth on Feb 18, 2022
Direct link to the article 9 New React and JavaScript Links for February 2022
JavaScript react

9 New React and JavaScript Links for February 2022

Every now and then, I find that I’ve accumulated a bunch of links about various things I find interesting. Like React and JavaScript! Here’s a list of nine links to other articles about them that I’ve been saving up and …

Avatar of Chris Coyier
Chris Coyier on Feb 11, 2022
Direct link to the article How to Cycle Through Classes on an HTML Element
classes classlist JavaScript

How to Cycle Through Classes on an HTML Element

Say you have three HTML classes, and a DOM element should only have one of them at a time:

<div class="state-1"</div<div class="state-2"</div<div class="state-3"</div

Now your job is to rotate them. That is, cycle through classes …

Avatar of Chris Coyier
Chris Coyier on Jan 26, 2022
Direct link to the article The Invisible JavaScript Backdoor
JavaScript security unicode

The Invisible JavaScript Backdoor

An interesting (scary) trick of an nearly undetectable exploit. Wolfgang Ettlinger:

What if a backdoor literally cannot be seen and thus evades detection even from thorough code reviews?

I’ll post the screenshot of the exploit from the post with the …

Avatar of Chris Coyier
Chris Coyier on Dec 8, 2021
Direct link to the article Responsible JavaScript
book JavaScript

Responsible JavaScript

High five to Jeremy on the big release of Responsible JavaScript on A Book Apart. There is a lot of talk about how the proliferation of JavaScript has had a negative impact on the web, but now we have …

Avatar of Chris Coyier
Chris Coyier on Nov 2, 2021 (Updated on Nov 3, 2021)
Direct link to the article Links on React and JavaScript II
JavaScript react

Links on React and JavaScript II

  • How To Use The Vite Build Tool with React — Vite is hot, in part, because it’s based on esbuild and wickedly fast. It’s from Evan You of Vue fame, but it’s not a Vue-specific tool. Here, NARUHODO covers how
…
Avatar of Chris Coyier
Chris Coyier on Oct 1, 2021 (Updated on Oct 2, 2021)
Direct link to the article Comparing Methods for Appending and Inserting With JavaScript
beginner JavaScript

Comparing Methods for Appending and Inserting With JavaScript

Let’s say we want to add something to a webpage after the initial load. JavaScript gives us a variety of tools. Perhaps you’ve used some of them, like append, appendChild, insertAdjacentHTML, or innerHTML.

The difficult thing …

Avatar of Eric Markfield
Eric Markfield on Sep 24, 2021 (Updated on Sep 29, 2021)
Direct link to the article Implementing a single GraphQL across multiple data sources
graphql JavaScript serverless serverless function

Implementing a single GraphQL across multiple data sources

In this article, we will discuss how we can apply schema stitching across multiple Fauna instances. We will also discuss how to combine other GraphQL services and data sources with Fauna in one graph.…

Avatar of Shadid Haque
Shadid Haque on Aug 19, 2021 (Updated on Sep 16, 2021)
Direct link to the article Choice Words about the Upcoming Deprecation of JavaScript Dialogs
dialog JavaScript standards

Choice Words about the Upcoming Deprecation of JavaScript Dialogs

It might be the very first thing a lot of people learn in JavaScript:

alert("Hello, World");

One day at CodePen, we woke up to a ton of customer support tickets about their Pens being broken, which ultimately boiled down to …

Avatar of Chris Coyier
Chris Coyier on Aug 9, 2021
Direct link to the article The State Of Web Workers In 2021
JavaScript state management web workers

The State Of Web Workers In 2021

You gotta appreciate the tenacity of Surma. He’s been advocating for Web Workers as a path forward to better-feeling websites for a lot of years now. He’s at it again making sure we all understand the landscape:

[…] regardless

…
Avatar of Chris Coyier
Chris Coyier on Aug 4, 2021
  • 1
  • 2
  • 3
  • ...
  • 14
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • DigitalOcean
  • DigitalOcean Community
  • About DigitalOcean
  • Legal
  • Agency Coaching
  • Free Credit Offer
CSS-Tricks
  • Email
  • Guest Writing
  • Book
  • Advertising
Follow
  • Mastodon
  • Twitter
  • Instagram
  • YouTube
  • CodePen
  • iTunes
  • RSS
Back to Top