add:  document.getElementById("textbox").focus(); 
context: function onConfigLoad(){  // Load strings  gConfigBundle = document.getElementById("configBundle");  document.title = gConfigBundle.getString("title");  gLockStrs[PREF_IS_DEFAULT_VALUE] = gConfigBundle.getString("default");  gLockStrs[PREF_IS_USER_SET] = gConfigBundle.getString("user");  gLockStrs[PREF_IS_LOCKED] = gConfigBundle.getString("locked");  gTypeStrs[nsIPrefBranch.PREF_STRING] = gConfigBundle.getString("string");  gTypeStrs[nsIPrefBranch.PREF_INT] = gConfigBundle.getString("int");  gTypeStrs[nsIPrefBranch.PREF_BOOL] = gConfigBundle.getString("bool");  var prefCount = { value: 0 };  var prefArray = gPrefBranch.getChildList("", prefCount);  for (var i = 0; i < prefCount.value; ++i)   {    var prefName = prefArray[i];    if (/^capability\./.test(prefName)) // avoid displaying "private" preferences      continue;    fetchPref(prefName, gPrefArray.length);  }  var descending = document.getElementsByAttribute("sortDirection", "descending");  if (descending.length) {    gSortedColumn = descending[0].id;    gSortDirection = -1;  }  else {    var ascending = document.getElementsByAttribute("sortDirection", "ascending");    if (ascending.length)      gSortedColumn = ascending[0].id;    else      document.getElementById(gSortedColumn).setAttribute("sortDirection", "ascending");  }  gSortFunction = gSortFunctions[gSortedColumn];  gPrefArray.sort(gSortFunction);  gFastIndex = gPrefArray.length;    gPrefBranch.addObserver("", gPrefListener, false);  document.getElementById("configTree").view = view;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d56cec2ba446f7d0ae1450bae1cc799f3125420f/config.js/clean/xpfe/global/resources/content/config.js