JavaScript – The Definitive Guide

Since the earliest days of Internet scripting, Web developers have considered JavaScript: The Definitive Guide an essential resource. David Flanagan’s approach, which combines tutorials and examples with easy-to-use syntax guides and object references, suits the...

JavaScript Program to show Clock Type

This is a really neat little script that can display the current time in “Military Time” or “12 Hour Time” with the push of a button. Give it a try, it’s neat! JavaScript /******************************************************* * MYCPLUS...

JavaScript Program to show Date and Time Stamp

This is a simple JavaScript Program to show Date and Time Stamp. With this script, you can have the date and time the page was loaded ‘stamped’ to the page. This would make a wonderful header or footer for any web page. JavaScript...

Java program to show Browser Information

This script does a great job of displaying information about your web browser including version, your computer’s platform, if Java is enabled, how many pages you’ve visited, and screen resolution. Take a look, it’s pretty cool. 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...

Blinker

This script allow you to quickly blink the background. With a click of a button, the background changes from white to blue and back several times to return to white. JavaScript /******************************************************* * MYCPLUS Sample Code -...

Born on date

In place of the boring ‘Last Updated’ script, you can use this script. It does everything and more – it gives the page title, the day the page was last updated, and if the page has been updated since the visitor’s last visit all in a cool...

Color Table

JavaScript helps you manipulate the background of the document. Either choose the color you want by its name, or create a unique color by using the “+” and “-” Red, Green, and Blue buttons. A really neat effect. JavaScript...

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...