Short answer:
Yup:
var method = "refresh";
yourObject[method]();
Long answer:
It's possible, but your methods must be namespaced.
The following example will work, if you're in a browser context, because every global function is a property of window:
function refresh() {
// do it
}
var method = "refresh";
window[method]();
// or maybe
var yourObject = { refresh: function() { ... } };
yourObject[method]();
However, the following won't work (I'm showing it because closures are a common pattern in javascript):
(function() {
function refresh() {
// do it
}
var method = "refresh";
// which object contains refresh...? None!
// yourObject[method]();
})();