Class name handling prototype methods
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.
6
Normally in CSS whichever rule is specified last takes precedence. However if you use !important after a command then this CSS command will take precedence regardless of what appears after it.
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.
9
Gets the rightmost substring, of the specified length, from a String object.
8
svachon
Gets a regular expression that'll search for any regexp pattern specified in the parameters.
32
Gives you the ability to dynamically include a CSS file at any time in your HTML page using Javascript.
14
Here's a library to manage CSS class names on DOM elements.
14
Set a word or phrase in an input field, clear it onfocus
12
A simple demo of the google maps API
8
This code will remove specified no of elements in an js array , from the beggining of it.









