Currently browsing JavaScript

JavaScript Logo
Ciprian on Tuesday, October 16, 2018 — 3,024 Views

How to Build a Vanilla JavaScript Slider in Less Than 100 Lines

This quick tutorial will show you how to create a basic slider in less than 100 lines. The actual JavaScript is less than 30 [...]

JavaScript Logo
Ciprian on Sunday, September 30, 2018 — 344 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 — 416 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 — 708 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 — 626 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 — 310 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 — 2,349 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 — 351 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 — 573 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 — 511 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 — 648 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 — 560 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 [...]

Privacy Policy