JavaScript Articles Index

Site Navigation 
General writings on JavaScript (via groups.google.com).
Almost every article and post that I have ever written on the subject of JavaScript and browser scripting is available through the groops.google.com archives.
Private Static Members in JavaScript.
JavaScript is not a class based language and its object-based constructs do not include any concepts of private members on those objects. However, JavaScript is capable of emulating almost any concept form any other language. Douglas Crockford realised that JavaScript objects could emulate private instance members and this article describes how I extended his technique to emulate private static members, exposing some interesting alternative possibilities for JavaScript object structures along the way.
Square Bracket Notation.
Square Bracket Notation is the (apparently) less well known alternative to dot notation when defining property accessors for JavaScript and DOM objects and introduces a flexibility that dot notation is incapable of. This article (in its original form) has now been incorporated into the comp.lang.javascript FAQ resource.
Pop-up Windows.
Thoughts on the subject of pop-up blockers, pop-up windows and the alternatives.

Articles Elsewhere.

In January 2004 I took over responsibility for maintaining/editing the comp.lang.javascript Usenet newsgroup FAQ resource form Jim Ley. The subsequent round of revisions revealed a general desire for the FAQ to include more details on various subjects. Unfortunately, the FAQ itself is posted to the group on a regular basis so expanding its contents to the degree demanded was not practical. The solution to reconciling these conflicting requirements was to create an additional resource of articles expanding on aspects of the FAQ and javascript in general and make it available along with the FAQ as a supplementary resource.

Some of the articles that I wrote for that supplementary resource that may be of general interest to javascript authors are listed below.

An Alternative DynWrite function.
An elaboration of the DynWrite function proposed in the quick answers section of the comp.lang.javascript FAQ that incorporates a testing strategy to allow code to know how successful attempted dynamic content insertion operations are.
Browser Detecting (and what to do Instead)
Why browser detecting doesn't work and an introduction to the techniques that make it unnecessary, and so unimportant that it doesn't work.
Javascript Closures
An explanation of closures in javascript and the underlying mechanism.
Javascript Type-Conversion
How automatic type conversion behaves in javascript, how to force type conversion and the nature of the results.
Referencing Forms and Form Controls.
General information on accessing forms and form controls in HTML documents with javascript.
© Richard Cornford 2004