title: how to set default focus on the submit button in a popup window
body: <p>please help me someone,,,,</p>
  
  <p>i write some code to get the popup window using the following code.</p>
  
  <pre><code>&lt;div id="EMAIL_CONFIRMATION_PENDING" class="popupContact" style="z-index:10003;"&gt;
                  &lt;div class="popup_textarea"&gt;
                      &lt;h3&gt;&lt;h:outputLabel value="#{labelMsgs.emailPendingLabel}"/&gt;&lt;/h3&gt;
                      &lt;div class="VerifyEmailText"&gt;
                          &lt;h:outputLabel value="#{labelMsgs.clickToSendEmail}"/&gt; 
                          &lt;span class="FontItalic"&gt;&lt;h:outputLabel value="#{headerBean.emailAddress}."/&gt;&lt;/span&gt;
                          &lt;br /&gt;&lt;br /&gt;                         
                      &lt;/div&gt;
                      &lt;div  class="SuspendedBoxMsg"&gt;
                          &lt;h:outputLabel value="#{labelMsgs.accountSuspend}"/&gt;&lt;br /&gt;
                          &lt;h3&gt;&lt;h:outputLabel value="#{sessionScope.DASHBOARD_EMAIL_EXP_TIME}"/&gt;&lt;/h3&gt;
                          &lt;h:outputLabel value="#{labelMsgs.unlessYouVerify}"/&gt;
                          &lt;br /&gt;                                                        
                      &lt;/div&gt;
                      &lt;div&gt;
                          &lt;span class="FontWeight"&gt;
                              &lt;h:outputLabel value="#{labelMsgs.spamMailFolder}"/&gt;
                           &lt;/span&gt;
                          &lt;a4j:commandLink id="resendLink" styleClass="violet_color_link" value="#{labelMsgs.regSuccSendMail}" onclick="javascript:resendLink(); this.onclick=null;" action="#{headerBean.resendEmail}" /&gt;
                      &lt;/div&gt;
                      &lt;div class="OkButton"&gt;
                          &lt;div class="button_input"&gt;                          
                              &lt;a4j:commandButton id="emailConfm" styleClass="image_button" value="#{labelMsgs.okButton}" action="#{accntDashboardBean.popupRefresh}"
                                  reRender="frmAccountDashboardMenu:POPUP_PANEL" oncomplete="disablePopup1('EMAIL_CONFIRMATION_PENDING', 'backgroundPopup');popupCall('#{sessionScope.toShowPopupOf}');"/&gt;
                          &lt;/div&gt; 
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>in this am using the id of the div to populate the popup,like this i have write some other popup code with different ids. for this i write the code in window.onload function to get the popup,
   so, i need to set the default focus on the submit button which i mentioned in the above code.</p>