Input Mask
This script uses unobtrusive JavaScript to implement "input masks." The maximum field length is automatically limited to the length of the mask. The characters that are entered into the fields are constrained, and separators are automatically added. (No actual validation is done. Check our site for validation scripts.)
getElementsByClassName Deluxe Edition
JavaScript does not provide a function for obtaining elements by class, only by id, name, and tag name. This snippet will accomplish that, and includes optional arguments with defaults and support for multiple classnames in any order. It works in IE, Firefox, Opera, Safari and IE Mac.
Display Page URL
Sometimes you may want to give your visitor the URL of the page they are on. You can provide the entire path with breadcrumb scripts but, if you just want to give them the current URL, this short snippet will do the trick. Just place it anywhere on the page you want to display the URL.
Explorer Plugin Starter
A simple script which activates objects in Internet Explorer 7 so users don't have to click on Flash to activate. In addition to object and embed tags, support is also provided for applet tags and all their param tags.
Sentence Case
Use this script to properly format form submissions. The beginning of each sentence will be capitalized, the rest of the sentence will be lower case.
Attention JavaScript Coders!
Want some recognition for your scripts? Submit them to us and they may be featured here and on JavaScript Source! |