I'm working on customizing the context menu [(...)-menu] of a document library. In line 5 of my code I'm trying to give a link to my new inserted entry of context menu, but the code seems wrong and doesn't work. I would be thankful, if someone of you knows the right code for linking.
<script language="javascript">
function Custom_AddDocLibMenuItems(m, ctx)
{
var strDisplayText = "Say Hello World!";
var strAction = strDisplayText.link("MY LINK");
var strImagePath = "";
// Add our new menu item
CAMOpt(m, strDisplayText, strAction, strImagePath, strDisplayText.link);
// add a separator to the menu
CAMSep(m);
// false means that the standard menu items should also be rendered
return true;
}
</script>
Additional question: Does somebody know, how to add new items to this code? What kind of "tag" they need?
Thank you very much in advance.