There is a function whose name is stored in the value of another function, and I need to invoke this function using the other one.
The function I need to call is popup()
random() = 'popup()'
if ($.cookie('optin-page')) {
}
I attempted:
if ($.cookie('optin-page')) {
window[random()];
}