From the magic "what-the-hell-does-this-mod-call-this-button" script

Code:
/run local f = GetMouseFocus(); if f then DEFAULT_CHAT_FRAME:AddMessage(f:GetName()) end
The teleport one was on the EU UI boards.