color Wheel

This JavaScript will change the background from one color to the next for each of the 10 colors then it starts the loop over again! There is also an On/Off button to let you start and stop the JavaScript. JavaScript...

Random Background

Get a random background color with the touch of a button. This script uses 15 pre-determined background colors and then randomly chooses one. This is a great effect if you know what background colors don’t interfere with the text on your page. Then, you can make...

Type a color

This script is another neat way to spice up your webpage with JavaScript. Visitors just type their favorite color in the box and click a button. The background is instantly changed to their favorite color! JavaScript...

Current date and time (long)

This is the somewhat longer way to put the current date and time on your page. It writes in a longer date and time format than the previous date and time script. The script is also longer…. JavaScript /******************************************************* *...

Days till date

This little JavaScript will take an event or date in the future and compare it to the current date, then display how many days until that date/event occurs. Pretty neat! Lots of uses… (Marriage countdown, till school’s out countdown, etc) JavaScript...

Five function calculator

Here is a really simple JavaScript calculator – with just 5 functions! (Add, subtract, multiply, divide, and power) This example can help you see how JavaScript evaluates math functions! Check it out! JavaScript...

Advanced Calculator

This is a very comprehensive JavaScript calculator. Although the source code can get quite confusing, it works. JavaScript /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a...

Airport Calculator

This useful JavaScript calculator will tell you the degrees, Nautical Miles, Statute Miles, and Kilometers between your originating and destination airports. It’s got a built-in database of over 150 of the most traveled airports! Very neat! I’ve given a...

Interest Calculator

Use JavaScript to find out just how much that new house or car is going to cost you each month. Enter values into the fields below to find out how much each monthly payment would be with the given number of payments, interest rate, and loan amount. JavaScript...

JavaScript Periodic Table

The periodic table is a tabular arrangement of the chemical elements, ordered by their atomic number, electron configuration, and recurring chemical properties, whose adopted structure shows periodic trends. Besides a very organized Periodic Table, this script will...

Phone Bill

Does it ever bother you how much a long-distance phone call is going to cost, after you hung up? With this script, all you have to do is enter the amount per minute, and any initial amount, then click start when the call begins and see the total charge at any time!...

Browser Check

It’s often necessary to make a script only accessible to the newer browsers (that can support the script without error) and keep older browsers from trying to work with it. This script, as an added plus, is very short. Just Cut & Paste this script even if...