I'm trying to use JavaScript to find the context menu items being shown and selected from the lists (such as a document library) in SharePoint. I've tracked down a few different function names within core.js, (such as DispEx() and CMOpt()) but I really am having a hard time following the unhelpful variable name mess.
My understanding is that the context menu has to exist within the DOM somewhere - I just can't find out how to retrieve/reference it.
Thanks in advance - this is driving me nuts!
EDIT: I've tried traversing all children from onclick="return DispEx(...)" and I'm not getting anything! This is what I've used to capture that info:
' '
function findStuff(){ var something; $('[onclick*=DispEx]').children().each(function(){ something = something + this.tagName + '\n'; }); alert(something);
}