Java Script Math Object Trigonometric Methods
This article describes the Java Script Math object .sin, .cos, and .tan methods along with how to convert degrees to radians and how to set the number of digits to the right of the decimal point. More ...
Easy Java Script Code to Fill Array With Random Numbers
The code I present here might not be the fewest lines possible to fill an array With random numbers, but it is the easiest to understand. More ...
Using a Select List for Navigation
An HTML Select list is a form control used to create a drop-down list of items from which the user can select. You can use a select list as a navigation element by setting each option element's value attribute to the URL of a web site or web page. More ...
Easy Slide Show Code
One of the problems with creating such a slide show is that the images should all be the same size. If the images are not all the same size, your web page may grow and shrink as the different images
are displayed. More ...
Regular Expression: Alternation
In this article you learn how to create an alternation regular expression that will match alternate patterns in a string. More ...
Binary Subtraction with Example JavaScript Code
The first step in a binary subtraction is to replace the subtrahend with its 2's complement. But many people do this wrong because they don't understand the importance of magnitude. More ...
Use JavaScript parseInt() and parseFloat() to Convert Strings to Numbers
If the results of a mathematical operation in your script are not what you expected, make sure that you convert any numbers represented as strings to the actual number data type before performing the operation. More ...
Easy JavaScript FileReader Code
The JavaScript FileReader object allows web pages to read files stored on the user's computer. Files may be selected using the input element, or selected with a drag and drop operation. More ...
Regular Expressions Intervals
Regular expression intervals tell us about the number of occurrences of a character in a string. Curly braces are used to define a precise count of how many occurrences you are checking for. More ...
Easy Code for Date Count Down
One of the most powerful incentives for people to make a purchase is scarcity, and one of the most popular ways to create scarcity is have a "limited time" offer. Web pages that present a limited time offer always have a count down timer to let you know how much time is left. More ...
Code to Fade Between Two different Pictures
You've probably seen websites where a picture fades out, being replaced by another picture that fades in. This effect is called a visual transition and it's easy to do with just a tiny bit of code. More ...
Java Script Code to Move Items Between Select Lists
In this article you'll learn how to use Java Script to move items from one select list to a second select list. I'll explain the code in detail so that you'll be able to fully understand and modify it for your own use. More ...
