title: How to trigger onclick by pressing enter using inline javascript?
body: <p>[FYI: i am not allowed to change how it was marked up. div will be clicked.. not a button or anchor]</p>
  
  <p>i have a menu(that should pass on accessibility standards) that will open its submenu when clicked.</p>
  
  <p>this is the onclick function, and i need to do the same function when pressing enter key,</p>
  
  <pre><code> // parent menu (this will repeat)        
      &lt;div onclick="javascript:ToggleMenu('Calendar');" class="menu-item" style="cursor: hand;" tabindex="2"&gt;
          &lt;p&gt;Calendar&lt;/p&gt;
          &lt;/div&gt;
  
  //submenu (this will repeat)
              &lt;div id="Calendar" class="menu-subitem" style="display: none;" tabindex="2"&gt;
  
  
              &lt;a onclick="Audit(this)" tabindex="2" href="Calendar/CalendarAssignment.aspx" id="TM_C1"&gt;Calendar Assignment&lt;/a&gt;
               &lt;a onclick="Audit(this)" tabindex="2" href="Calendar/ShiftAssignment.aspx" id="TM_C2"&gt;Shift Assignment&lt;/a&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>thanks!
  i tried my best to be clear whew!</p>