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






in_array() This snippet searches an array for a pre-specified element and returns 'true' if it's found, 'false' if it's not found. It functions like the in_array() in PHP.


Category: Snippet

Redirecting JavaScript script This JavaScript uses a short JavaScript code to redirect to another URL. Though the code is simple but we need decorate the page with image/message to notice to visitors.


Category: Snippet

Change Color onMouseover This JavaScript makes color of text change when visitors move mouse over it.


Category: Snippet

Remove an Element in JavaScript Array This free JavaScript snippet guides you how to remove an element in JavaScript array, by the value of element or its index. Very useful and helpful for coding and programming in JavaScript. Indexes in this JavaScript snippet:

- Remove Array element by Index, with splice() method.
- Remove Array element by Value


Category: Snippet

JavaScript Add-Remove HTML Elements with DOM This JavaScript code example will dynamically add/remove HTML elements with content included within them according to the DOM2 specification. A very easy JavaScript code to learn and use DOM.

Try more JavaScript codes on jsB@nk to handle DOM better:

- JavaScript OOP with Input Display Toggle
- JavaScript Content Auto-Indexing using DOM
- JavaScript Add More Unlimited Input Fields


Category: Snippet

Multiple Functions onLoad Let use this JavaScript code if you want to load serval functions with onLoad event. Very short script and easy to use, but you can load unlimited functions.


Category: Snippet

Window Print Method Add a button to allow your visitors to print your Web page. Compact and simple, yet highly requested.


Category: Snippet

Algorithms by JavaScript This package uses JavaScript to build algorithms: Heap sort, Quick sort, Counting sort and Bucket sort. Usefull scripts for teaching. This is a little JavaScript to introduction to algorithms, programming algorithms.


Category: Snippet

Alert with onLoad & onUnload events This JavaScript uses the onLoad & onUnload events to say hello every time you visit page and say good bye every time you exit.


Category: Snippet

JavaScript Off Redirect Here's a trick that will redirect a browser when JavaScript is turned off. Why not redirect the ones that have JavaScript? Less than 10% of browsers have JavaScript turned off; therefore, redirecting less than 10% of visitors is better than redirecting over 90%.


Category: Snippet

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web