twitter@js_bankfacebook@jsbankrss@jsbank






Amazing Message Box This JavaScript code creates a message box and shows an alert after the page gets downloaded. Use the test cases to invoke methods of the message box directly.


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.


Category: Scrollers,

Set TextArea A simple example of setting a textarea by clicking one of several buttons.


Category: Form,

Scrollbar Of Buttons Creates a list of buttons. If there are too many buttons in a list, they can be scrolled.


Category: Form,

Converting a String to Title/Sentence Case This JavaScript helps you to convert a set of words to sentence case or title case. Ugly but quick JavaScript to convert a given sentence to title case.


Category: Form

Cell focus This JavaScript can be used to focus a cell.


Category: Form,

Form Focus Here's a helpful little script for anyone who has ever made a form and wants to have the cursor pop into their first field when the page is loaded. The visitor can start typing straight away, without moving the mouse.


Category: Form

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

Country Chooser Here's a useful script for a form that needs to know the visitor's country. It saves giving a huge list of countries in one box. For the USA, it also asks the state.


Category: Form,

Adding HTML Controls Use this JavaScript to add HTML controls to your forms. This example uses the <input> tag.


Category: Form,


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web