Clean DOM-Object
14
Set a word or phrase in an input field, clear it onfocus
14
Here's a library to manage CSS class names on DOM elements.
32
Gives you the ability to dynamically include a CSS file at any time in your HTML page using Javascript.
8
svachon
Gets a regular expression that'll search for any regexp pattern specified in the parameters.
9
Gets the rightmost substring, of the specified length, from a String object.
12
toddersbud
This shows how the computed style of each node differs from the computed style of its parent. The root element, which has no parent, is instead compared against the root of a blank HTML document.
* create a new bookmark called "compute styles" in your firefox toolbar. Place the snippet code in the location field of your "compute styles". click the compute styles bookmark, then click an element on the page with the crosshairs.
* create a new bookmark called "compute styles" in your firefox toolbar. Place the snippet code in the location field of your "compute styles". click the compute styles bookmark, then click an element on the page with the crosshairs.
10
mattrmiller
This is a correct way to do login form auto-focus, checking to see if either username or password have focus already. This prevents someone from typing a username hitting TAB, then having JavaScript chime in, resetting focus to Username while user is typing in their password. In this case, the password is appended to the username which is in plaintext.
9
A simple back button in JavaScript.
10
AJAX: In situ edit
A simple edit in place using Prototype, based on the tutorial @ 24ways.org
A simple edit in place using Prototype, based on the tutorial @ 24ways.org
10
A prototype function to get an array of elements by id in an array









