This efficient JavaScript function returns the greatest common divisor of a series of numbers.
Get the Last Day of the Month
This one line JavaScript function gets the last day of the month, for the specified month and year.
Array of States and Their Coordinates
An array of state abbreviations and their approximate GPS coordinates.
Back, Forward and Refresh using JavaScript
Navigating back, forward and refreshing the browser page using JavaScript.
Preload images using JavaScript
This code shows you how to preload a set of images using JavaScript so that you can later use them without having to wait for them to load.
Ask for confirmation on form submit
Show a confirmation dialog upon submitting a dialog by using a standard button with a little JavaScript instead of a typical submit button.
Checking For Leap Years
This tutorial will show you how to create a JavaScript function that checks whether a given year is a leap year (366 days) or not (365 days). In this tutorial I aim to teach you how to check valid leap years in JavaScript. Basically I want you to be able to understand how to go […]
Animated Color Matrix
This tutorial, especially recommended to beginners, will give you a better understanding of the JavaScript language: how to use loops, arrays and functions to create a fun animation. This JavaScript will make the background color of a few DIV objects change by creating animation patterns. Let’s start by creating the HTML that will later be […]
Rotate Array in JavaScript
A function for rotating arrays to the right or to the left, any number of times.
Android Security Gets a Boost: Google Introduces Enhanced Malware Detection
In an age where our digital devices are central to everyday life, the importance of robust security cannot be overstated. Google has risen to the challenge with a significant update to the Android operating system, focusing on a critical aspect of user protection: malware detection. This enhancement is not just an incremental change; it’s a […]