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






getElementsByClassName Deluxe Edition JavaScript language does not provide us a function for obtaining elements by class, only by id, name, and tag name. This JavaScript snippet will accomplish that, and includes optional arguments with defaults and support for multiple classnames in any order. It works in Internet Explorer, Firefox, Opera, Safari and Mac.


Category: Snippet

Hate IE Notification If your visitor is using Internet Explorer as their browser, this script will politely suggest Firefox as an alternative browser, maybe your users will remove IE like you; it is not windows notification, browser alert only. Just add it to the head of your page. Very simple!


Category: Snippet

Gas Cost Calculator Do you ever wonder how much you must pay for fuel/gas in a year? Use this simple gas cost calculator to find out how much you spend or calculate fuel/gas costs, cost average monthly and annually. In addition, this calculator will also compute the miles per gallon (MPG) for your vehicle.


Category: Utility

Browser Sniffer Script (ver 1.1) This browser sniffer detects all the major browsers currently out there, and passes the results on as variables to facilitate your browser detection needs. It differentiates between Windows, Mac and Linux, and the most commonly used DHTML browsers - IE4/5/6, Netscape 4/6/7/other Gecko, Konqueror 2.2+, Safari, Opera 5/6/7. All other browsers are grouped together under a single exclude variable, to protect them from complex scripting.


Category: Snippet

Open Links Option II Give and display the radio option to open links in either a new window or in the same window. Simple to set-up and completely unobtrusive.


Category: Link

Click Radio Button to View Information with images In order to display detailed information about some object; such as member or product; you can use simple JavaScript code. This is upgraded version of Click Radio Button to View Information; this script display image for each item.


Category: Form, Checkbox

Click Radio Button to View Information If you want to save the space on your web pages, let use this JavaScript. When users click any radio button, its corresponding information is automatically displayed. A simple and quick JavaScript but useful and high customization.

Also see: Click Radio Button to View Information with images


Category: Form, Checkbox

CSS Stylesheet Importer by DOM Let use this simple JavaScript if you want to use the DOM to include a cascading style sheet. Very simple to implement and customize.


Category: Snippet

Weight Watchers Points Calculator Are you creating a diet Web site? Are you using the Weight Watchers Points plan to lose weight? If so, this little calculator might just come in handy. A simple but quick method to figure WW points.


Category: Utility

Smarter Dynamic Select Options Let use this multiple select script if you want to create select boxes that relate to anothers, by onchange event. Choose a value in the first select options and the script will precess and display the available select values in the second box to match your selection automatically. Easy to use, with full comments in source code.

You can also see more for multiple select, dynamic dropdown,...


Category: Form, Dropdown

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web