Worse way to take a screenshot of a website using HTMLEditorKIT
June 8th, 2011
In previos post we considered worst way.
JavaScript outer click
June 3rd, 2011
You can find some source code under the cut.
JavaScript closures
May 20th, 2011
Closures are powerful features of JavaScript.
A closure is an expression (typically a function) that can have free variables together with an environment that binds those variables (that "closes" the expression).
Many developers were first introduced with closures when they try to execute code that similar to given below
for (var i = 0; i < aLinks.length; i++) {
aLinks[i].onclick = function() {
alert(i);
}
}
Code contains an error that can be explained as follows.