add:  document.getElementById('ok-button').focus(); 
context: function onLoad(){  pkiParams    = window.arguments[0].QueryInterface(nsIPKIParamBlock);  dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock);  var isupport = pkiParams.getISupportAtIndex(1);  cert = isupport.QueryInterface(nsIX509Cert);  var bundle = srGetStrBundle("chrome://pippki/locale/newserver.properties");  var gBundleBrand = srGetStrBundle("chrome://global/locale/brand.properties");  var brandName = gBundleBrand.GetStringFromName("brandShortName");  var message1 = bundle.formatStringFromName("newServerMessage1",                                             [ cert.commonName, brandName ],                                             2);  var message4 = bundle.formatStringFromName("newServerMessage4",                                             [ cert.commonName ],                                              1);  setText("message1", message1);  setText("message4", message4);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0f7abc31c374a4a638b1b06c15f8ea765bc7ab8c/newserver.js/clean/security/manager/pki/resources/content/newserver.js