google+javascriptbanktwitter@js_bankfacebook@jsbankrss@jsbank
Guest, register






Vertical Framed Scroller There is a bug in Netscape 4.x which causes the page to scroll unpredicatably using the window.scrollTo() method when there are both horizontal and vertical scrollbar present. Therefore, this JavaScript is designed not to function nor will the arrows even appear in Netscape 4.x browsers (but does function correctly in Netscape 6.x browsers).


Category: Browser, Frame

Validation (Character) Automatically removes specified characters from input box. Good for fields that require only text/number inputs. Easily modified to accept only text or only numerals.


Category: Form, Validation

List Organizer Easily organize a list of values to place them in any order. Allows you to add and delete from the list!


Category: Form, Dropdown

Validation Let JavaScript help you receive feedback from your visitors. The script also requires that all fields must be completed before the form is submitted. Great!


Category: Form, Validation

Dynamic Form Fields I needed a form for students enrolling in training courses. I couldn't find exactly what I needed out there, so I built my own (borrowing some code from others (credits given in code)). The really important thing was that if, after changing the data, the applicant altered the number of students or hit the back button from the next page, the existing data would not be lost.

Feel free to do whatever with this code, no credit to me required. If you make it better, though, please feel free to e-mail me! Create a form that dynamically changes the number of fields available based on a select list value.


Category: Form

AJScroller AJScroller is a cross-browser, DHTML scroller. Full HTML syntax is supported, which means you can add images, format and align text quickly and easily. The scrolling speed and pause delay can be configured and controlled dynamically.


Input Box Comments Display a few words in a form field and when focus is given to the field, the words will disappear. Great for providing instructions in a small space.


Category: Snippet

Marqueeing Text in Button By using string manipulation and setTimeout, you can have the letters on a button 'scroll'. Run the code for an easy example.


Category: Form, Button

Check All Toggle Switch This script adds the 'check all' function to a form. Short and easy to use.


Category: Form, Checkbox

Blinking Textbox Effect When executed, this JavaScript will place the cursor in a specified textbox, causing its background to blink for 6 seconds. This will highlight the textbox on the Web page in order to draw attention to it.


Category: Form

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web