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

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

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

iPhoneKer.com
Save up to 630$ when buy new iPhone 15

GateIO.gomymobi.com
Free Airdrops to Claim, Share Up to $150,000 per Project

https://tooly.win
Open tool hub for free to use by any one for every one with hundreds of tools

chatGPTaz.com, chatGPT4.win, chatGPT2.fun, re-chatGPT.com
Talk to ChatGPT by your mother language

Dall-E-OpenAI.com
Generate creative images automatically with AI

AIVideo-App.com
Render creative video automatically with AI

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web