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






Cross Browser Black Snake Game This JavaScript code is a simple cross browser snake game you can add to your site on anywhere. Choose a level then use your arrow keys to attempt to eat the apple (red block), but watch out for the walls. At any time you can pause the game by pressing the space bar.

You still play more our different snake games at here.


Category: Game, Skill

Auto-Complete Function on key press Create an auto-complete or auto-suggest text box in JavaScript, without use of prototype handlers and other advanced techniques. This script could be adapted for use in a number of different situations.

Maybe you also want to see our previous auto-complete scripts: Simple Auto-Complete and Auto-Complete Textfield.


Category: Form

Truncate HTML Text This JavaScript is a clever way of automatically truncating the text of a paragraph on your web page, without dividing in the middle of a word. You can truncate the text to a length of your choosing. A JavaScript link is added to expand the text.


Category: Text

Simple Drop Down Navigations This clean-looking JavaScript menu horizontal is very simple to implement and can be placed anywhere on a page. Adding or deleting levels is easy to do. The JavaScript menu is created without tables, using unordered lists and hidden layers.


Removing Nodes Using the DOM You can remove existing nodes using the DOM. The removeChild method allows any node to remove one of its child nodes. Simply pass a reference to the node you wish to remove. Any text or innerHTML elements within the node being removed will be removed along with it.


Category: Snippet

Image Load Delayer This simple and short JavaScript can be used to delay the loading of any particular image on a Web page. A smaller image is loaded, which can be transparent or blank, in place of the larger image. After a designated amount of time the larger image can be made to load in place of the smaller one.


Category: Image

Browsing History Keeper A JavaScript-based library for managing browser history (back button) and providing support for deep linking for Flash and AJAX applications.


Category: Utility

Search the Page This JavaScript will allow your visitors to search a Web page for any matching characters. It can be set for the entire page or within a specific ID attribute. Simple to use and heavily annotated.


Category: Utility, Search-code

Link Brackets Want to spruce up your links without adding background images? This JavaScript will enclose your designated links in brackets. You can keep the other links separate, if you like.


Category: Link

JavaScript Utilities Library This JavaScript provides functions for browsers which do not inherently support the entire JavaScript Core and supplies some useful functions PHP developers might wish they had access to.


Category: Utility

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web