I have a context menu that returns the menu item clicked as a value in a variable, like so.
var m = key;
The variable can be anything I program, for example; edit, cut, paste or anything else I want.
Is it possible to use this variable as a function name? For example: function m() where m can be the content of the variable.
Any suggestions will be much appreciated.
Thanks
Chris