Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Variable scope and functions


le_gber - 10:08 am on May 9, 2009 (gmt 0)


I use onfocus instead of onclick here --> ffields[i].onclick = function () {

The reason for that is, it is proper syntax when ending an assignment statement (defining a value).
Such as:
var a = 3;
or:
var f = function () { return a/7; }; //<---- a value was assigned to f, just happens to be a function

makes sense, cheers


Thread source:: http://www.webmasterworld.com/javascript/3909506.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com