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






getElementsByAttribute Ever run into a situation where you want to get an array of all elements with a specific attribute? Or even want elements with a certain value for that chosen attribute as well? Just add this JavaScript code JavaScript snippet to your script and your problem will be solved.


Category: Snippet

Some Essential JavaScript Prototype Functions to Enhance your JavaScript Applications The JavaScript prototype functions in this JavaScript article tutorial are collected by jsB@nk from many JavaScript resources on the Internet. These JavaScript prototype functions are very helpful and essential to your JavaScript applications, web-based applications if you need to reduce time and work to process JavaScript tasks. And if you are still not good at JavaScript prototype functions, please read the JavaScript article below:
- JavaScript Prototype: Some Basic Concepts
- Prototype Dollar Function

This JavaScript article tutorial provides you the JavaScript source codes of 13 JavaScript prototype functions to process JavaScript Strings, JavaScript Arrays and Number variables, please go to the full-post page for details, now jsB@nk shows you some very popular JavaScript prototype functions only:
- contains: check if a string contains a child string
- trim: strips all redundant spaces from beginning and end of string
- copy: copy/clone an array variable
- random: return a random element, optionally up to or from range


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

Using the Target Attribute with JavaScript Sometimes you may need to open certain links in a new window. The 'target' attribute is deprecated and is therefore not allowed when using XHTML with a STRICT. But when use this JavaScript, you will be able to keep your pages valid while also using the target attribute to open new windows.


Category: Snippet

getElementsByClassName: Simple Shorthand Way to Get HTML Element by className with RegExp A simple JavaScript function to give web developers, web coders, web programmers ability for get HTML elements by their className properties.


Category: Snippet

Lock the Submit button by disabled property This script is a JavaScript example for locking some button by using disabled property.


Category: Snippet

Dragable and Dropable Object by className This script uses className to make drag and drop feature for objects as dragable div, dragable layer. Very easy to use and customize.


Category: Snippet

Dynamic Timed Redirect Redirect the user to a different Web page after a designated number of seconds, while displaying a countdown in the document title representing the number of seconds left before redirection.


Category: Snippet

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

Popup Blocker Detection Use this JavaScript snippet to detect if the client browser is using a popup blocker. If a one is detected, the script can then perform a different action. The sample uses an alert box to inform the user whether a popup blocker is present or not.


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