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






Simple Footnotes Add footnotes to your Web pages without all the aggravation. This JavaScript will pull the notes from your text, add links to them, and format them at the bottom of the page. It will also add a JavaScript link back to the spot in the text where the note is referenced. Very easy to use.


Category: Misc

Select Box with Options Use this JavaScript to easily change the order of options in a select box. You can see the order change as it happens in the "New Order" box. (The input can be hidden and used to change the order on the server side.)


Category: Form, Dropdown

Print to Preview Your visitors may not be familiar with style sheets for printing and don't see a 'print preview' in their browser. This script will provide them with a reliable print preview.


Category: Snippet

Obtaining the URL of the Referring Document Use this JavaScript snippet to obtain the URL which referred the user to that page. Be aware that on some servers this may not work.


Category: Snippet

Multilinks Sometimes you want a single hyperlink to lead to several pages and present a dynamic JavaScript menu when clicked. This is usually done through an intermediary page. This JavaScript will provide a dynamic JavaScript menu by creating an absolutely-positioned DIV tag on the fly, which will contain the list of links.


Category: Link

LiveEdit Preview your code live, as you enter it. Supports most HTML/CSS tags. Excellent for previewing Web site designs.


Category: Utility, Generator

Limit Characters and Words Entered This JavaScript will allow you to limit the number of words and/or characters entered into a form. Easily customizable. Example script will limit input to either 80 characters or 16 words, whichever comes first.


Category: Form, Validation

Highlighting Link 2 Make your rollovers more noticeable! This JavaScript colors your clickable links on rollover.


Category: Link

Global Time Zone (Japan=1am JST) Pick a country 'from' and a country 'to' get the time difference. Then, enter a time in the window and the time changes to the correct value in other country. The trick was with a +: I needed to use -(a*-1); because strings add each other!


Category: Time, Clock

getXML Obtain the contents of an XML element and convert it to text. This script is great for using with Ajax-type applications, when it's neccessary to send back the contents of an element to the server without knowing what's there.


Category: Snippet

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web