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






Rock Solid addEvent() Usually, when one event loads, it writes over any previous ones. Using this snippet, you can add several events to one page without any problems.


Category: Snippet

Regular Expressions Taster Grab these regular expressions to use in your own JavaScripts. They can add another dimension to your programming experience.


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

Multi-Dimensional Array Searching Use this prototype function to search through a multi-dimensional array. Simple yet efficient! Includes examples.


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

insertAfter() Use this JavaScript snippet to insert a node after another node. Quite handy in laying out Web pages.


Category: Snippet

getStyle Use this JavaScript snippet to get the rendered style of an element. Quick and simple to implement.


Category: Snippet

Get Firefox If your visitors are using one of those "other" browsers, this short script will display a graphic with a link to the Firefox Web site. (The graphic won't display if you're using Firefox to view this page.)


Category: Snippet

A Hidden Message Just type the word "code" and an action will activate! This script activates a JavaScript when you type some code.


Category: Snippet

Disable Text Selection Use this script to disable the selection of text on a page. It's very simple using two of the built-in JavaScript events to cancel the selection before it starts. You can even attach the events to a specific element.


Category: Security

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web