The JavaScript Source is an excellent JavaScript resource with tons of "cut and paste" JavaScript examples for your Web pages. All for free!
Latest Additions to The JavaScript Source
Forms:Verify E-mail Address - Collecting e-mail addresses in a form are important as they are generally the only method of contacting the user. This script will verify an e-mail address is entered correctly by requiring the user to re-enter the address, checking to make sure there is no typographical error. This script can also be used for passwords or other information that must be verified before being submitted.
Tutorials:Modifying an Element on the Fly - You can change an HTML element by setting one of the four inner/outer properties. This tutorial shows you how to do it.
Miscellaneous:Custom Alert Box - Create your own alert boxes, customized to match your site. Use this script to override the default window.alert method of a browser. Easy to implement and customize.
Miscellaneous:MD5 Algorithm - The MD5 algorithm is a secure hash function. It takes a string input, and produces a fixed size number - 128 bits. This number is a hash of the input - a small change in the input results in a substantial change in the output. The functions are thought to be secure, in the sense that it would require an enormous amount of computing power to find a string which hashes to a chosen value. In others words, there's no way to decrypt a secure hash. The uses of secure hashes include digital signatures and challenge hash authentication.
Forum Highlight:Using getElementsByClassName to Obtain an Array - This discussion looks at how to construct a function to get an array of all the elements with a specified class. Very interesting, with many excellent points.
More Additions: We add new scripts and tutorials on a regular basis. Be sure you didn't miss any of the most recent additions.
Keep up with our latest scripts and tutorials: Subscribe to our XML/RSS feed
Attention JavaScript Coders
Want some recognition for your scripts? Submit them to us and they can be featured on JavaScript Source!
DatabaseJournal offers SQL courses and other database related resources for beginner to expert developers.