CoderZone.org

 Category: JavaScript

Bookmark and Share

Javascript Include - allows dynamic includes of files - Javascript Include - allows dynamic includes of files.
Javascript Trim Functions - These Javascript functions trim whitespace from the ends of strings. They can be us...
JS ComboBox - A simple JavaScript ComboBox which works with IE (version 7.x) and Firefox (version 2.x). It is u...
KeyCode Tester - Shows the JavaScript key code of a selected key in an alert box. Just press a key and see the ...
Limit Text Area Characters - Limit the number of characters that can be entered into a text area. Works with an...
Make alternating color table rows automatically - Makes a given table have striped (alternating color) table ro...
Multi-line variables and strings in Javascript - It's often inconvenient to use long javascript strings that co...
Opacity Example - Great example of handling opacity. Make sure you replace "sample.jpg" with your own image, th...
Parse A URL Into Pieces - This function splits any properly-formed URL into its component parts (all are option...
Pass vars to/from PHP - Examples of how to pass vars from Javascript to and from PHP.
Password Strength Tester - This script evaluates a password by checking: * Length * Amount/Existenc...
Prevent framing a page - Stops people from "framing" your pages and presenting them as their own.
Prevent the 'enter' key from submiting a form: - Simple way to prevent the 'enter' key from submitting a form.
Preview URL/Page On Hover - When hover your mouse over a link, a small box containing contents from another pag...
Put Cursor At Top Of Textarea - Puts the cursor at the top of a textarea (rather than at the bottom).
Read GET URL Variables Into An Associative Array. - This snippet read a page's GET URL variables and return the...
Reserved Words In Javascript - A list of all of the reserved words in Javascript.
Rounding numerical fields - This function rounds a float value using a precision of two decimal places.
Select text in a DIV, SPAN, or table cell - Great little snippet to select text in a static object like a DIV, ...
Set cookie even after HTML output - Function that allows a Javascript cookie to be set after HTML has been out...
Show basic image info - Display basic information about an image .
Show/Hide Toggle - Shows or hides content with the click of a link.
Simple image resize on mouseover - A simple way to "grow" an image when the cursor is placed over it (onmouseov...
Sized Pop-Up Windows - Call it with an href like this: foo You can also shorten "toolbar=0,location...
Smooth Div Show/Hide - Simply copy and paste the following code inside your file and run it into a browser. Cre...
Timed link enabler - Enable a link after a set period of time.
Toggle All Checkboxes on or off - Simple Javascript snippet that lets you toggle a group of checkboxes on or of...
Trippy Page - Paste into address bar and watch the fun! You could also change the tagname to a, img or whatever...
Ultimate domain name validator - This will validate nearly any domain name correctly.
Validate A URL - This snippet tests a URL to make sure that it's valid.

© coderzone.org | users online: 6