title: conversion of event.srcElement using event.target in jquery
body: <p>I have question about cross-browser compatibility.</p>
  
  <p>I want to use the <code>event.target</code> instead of <code>event.srcElement</code> in the following code to make it work for firefox.</p>
  
  <p>I have used <code>target = event.target || event.srcElement</code>. It is not working. Any help will be appreciated.</p>
  
  <pre><code>function jumptoPopupMenuItem(theMenuID) 
  {                
    if (event.srcElement.className == "RightClickMenuItems") 
    {
      if (event.srcElement.getAttribute("url") != null)
      {        
        var strParameters = "";                                    
        if (theMenuID == "mnuAppointmentMenu")
        {
          strParameters = "AppointmentNumber=" + m_strAppointmentTypeYearNumber;
        }
        else if (theMenuID == "mnuAvailableHourMenu")
        {
          strParameters = "PreFillLanguageID=" + m_nLanguageID;
          strParameters = strParameters + "&amp;PreFillInterpreterID=" + m_nInterpreterID;
          strParameters = strParameters + "&amp;PreFillDateOfService=" + m_dtDateOfService;
        }
        if (event.srcElement.getAttribute("target") != null)
        {
          var PopupWindow = window.open(
              event.srcElement.url + strParameters, 
              event.srcElement.getAttribute("target"));
          PopupWindow.focus();
        }
        else
        {
          window.location = event.srcElement.url;
        }
      }
      hidePopupMenu(theMenuID);
    }
  }
  </code></pre>