InternotesSharing Web Development Techniques


Internotes — Articles about JavaScript

Showing & Hiding Passwords on Forms

Web Forms typically use the special `password` type for password inputs. This hides the password from every body, but unfortunately includes the user. This looks at how to temporarily show the password if the user wants.

More: show-form-passwords

JavaScript Objects

An object is a package or collection of data. This data may be simple, such as strings and numbers, or it may be more complex. In particular, the object can also contain other objects.

More: javascript-objects

JavaScript Functions

If you come from a different programming or scripting language, you probably thought you knew all about functions. However, JavaScript has a few surprises for you which may confuse or delight you, depending on what you had in mind.

More: javascript-functions

JavaScript Event Handlers

One of the most important aspects of using JavaScript is responding to user events. When the user clicks on something, types something or even sits and stares, it is possible for JavaScript to respond.

More: javascript-event-handlers

JavaScript Closures

If you haven’t heard of JavaScript Closures, then you’re in for some good news and some good news and some bad news. Roughly speaking, closures describe how JavaScript variables are inherited in nested functions.

More: javascript-closures

Toggling Attributes or Classes

An important technique is simply to be able to turn property on or off. Once you have done this, you can perform a lot of additional magic using CSS.

More: toggling-attributes