Click on the Dropdown button below. event.relatedTarget returns the element which triggered the dropdown.