What is the javascript equivalent of PHP call-user-func?
To call a user-defined javascript function, for example DoReload(), you have just to write its name:
DoReload();
In case you want to call this function using a variable holding its name, for example
var function_to_call = 'DoReload';
just write:
window[function_to_call]();
Entrepreneur | Full-stack developer | Founder of MediSign Ltd. I have over 15 years of professional experience designing and developing web applications. I am also very experienced in managing (web) projects.