Currently browsing JavaScript

JavaScript Logo
Ciprian on Sunday, September 30, 2018 — 227 Views

How to Implement a Service Worker in Your Website and How to Create a Basic PWA

You definitely don’t need a plugin for this. Although there are plugins which help with creating a service worker and a progressive [...]

JavaScript Logo
Ciprian on Saturday, September 29, 2018 — 275 Views

A Trio of Approachable Vanilla JS Sliders

This post has been superseded by How to Build a Vanilla JavaScript Slider in Less Than 100 Lines. The past weeks had me hunting for the [...]

JavaScript Logo
Ciprian on Saturday, September 29, 2018 — 458 Views

Cross-browser Query Parameter Getter and Setter

Here’s a cross-browser compatible way of getting query parameter from a URL or setting query parameters and reloading the page. An [...]

Ciprian on Friday, September 28, 2018 — 394 Views

How to Autoplay a Video Element Using JavaScript

The latest Chrome version has stopped video autoplay if the video is not muted. Firefox and the other browsers will soon follow suit. [...]

JavaScript Logo
Ciprian on Friday, July 13, 2018 — 208 Views

Native JavaScript Drag&Drop Upload

Modern browsers allow you to define native dragging & dropping functionality with a graceful degradation for older/ancient browsers, [...]

JavaScript Logo
Ciprian on Monday, July 9, 2018 — 1,650 Views

Passing Arguments to External JavaScript Files

This post covers the topic of passing arguments to external JavaScript files. I want to say up front that there doesn’t seem to be a [...]

JavaScript Logo
Ciprian on Monday, July 9, 2018 — 230 Views

JavaScript Data Types

Every variable in JavaScript has a data type which dictates the values that can be stored in it. However, JavaScript is a weakly typed [...]

JavaScript Logo
Ciprian on Monday, July 9, 2018 — 406 Views

Building a Simple Tab Strip using Vanilla JavaScript

I recently developed a simple tab strip using only HTML, CSS, and vanilla JavaScript. The script does not require any dependencies and is [...]

JavaScript Logo
Ciprian on Wednesday, July 4, 2018 — 311 Views

Convert jQuery.get() to Vanilla JavaScript

In the latest iteration of my YouTube Playlist Player plugin, I decided to remove all jQuery dependencies. I replaced the following jQuery [...]

JavaScript Logo
Ciprian on Monday, June 25, 2018 — 419 Views

How to Compare Version Numbers in JavaScript

The basic idea to make this comparison would be to get arrays of parts from the version numbers and then compare pairs of parts from the [...]

JavaScript Logo
Ciprian on Thursday, June 21, 2018 — 376 Views

DOM ready functionality using vanilla JavaScript

This is a reliable way of checking for DOM ready. The first version uses a procedural function, while the second one uses a callback [...]

JavaScript Logo
Ciprian on Tuesday, May 29, 2018 — 910 Views

DragonflyJS – Vanilla JavaScript Drag and Drop

DragonflyJS is a tiny vanilla JavaScript library that enables sorting (dragging and dropping) functionality with zero [...]

Privacy Policy