There are quite a few scripts out there for checking whether the Caps Lock key is on. However, the top searches for a helpful JavaScript function turn up a lot of dated, obsolete code that usually doesn’t work or uses techniques that are frowned upon, such as obtrusive JavaScript.

In this article I will show you a modern, unobtrusive, cross-browser way of detecting Caps Lock. See the script

Since support for the Advertising Manager plugin ended, recent updates to WordPress have left publishers without a toolbar interface. The final released version of Advertising Manager was 3.4.19 and it no longer works after upgrading to WordPress 3.3.

fix your plugin.

Max J Mammel
Guest Author: Max Mammel
Max Mammel is an Indianapolis-based Technical Lead of a web application development team with a global Fortune 500 firm. Max is an expert in design patterns, system architecture, and object-oriented programming and brings many years of Java know-how to

I suspect that there are nearly as many solutions to the problem of email address validation as there are projects that require them. I’ve seen a fair amount of them myself over the years, they range from simply checking for the presence of an @ in a string to extremely complex and often flawed sub-routines designed for the task. Get a proper script

It has been over 14 years since this piece of junk hit the internet, thanks to Internet Explorer (version 4). Many newer designers and developers have probably never encountered this JavaScript selector, but will no doubt pop up eventually. Learn the proper usage

Paste text in the window for instant character and line count. URL encode or decode your text with the buttons below. Use the tool

After adding an onbeforeunload event to an enterprise app recently, I noticed that the event would fire whenever the user clicked part of a flash swf. This was occuring even though the user was not leaving the page. In this article, I will show you what causes this and how to fix it. See why inside.

You can find a lot of search engine results when you look for methods to block the highlighting of text in your HTML. Unfortunately, the top results for disabling text selection either aren’t fully supported (the CSS way) or could cause scripting errors. I’ll explain inside.

There’s a lot of syntax to remember when dealing with JS events, so I figured it would be a good idea to compile a reference list that covers all types of events and the proper syntax to use them. See the examples.

In my last scripting article, I showed you how to use native JavaScript to disable mouse wheel scrolling and re-enable it afterwards. Now that you know it (you read it right?), I will show you the simpler MooTools way. All in 2 lines of code.

I occasionally need to block mouse wheel scrolling when I’m working with JavaScript. Of course, this is only momentary, such as when I need to display an overlay of some sort. See how to do it properly