Call A Javascript Function Using String Name
It is a bit complicated for to explain properly what I mean, so please try to understand me :) I want to be able in javascript to call a element method/function using text sent as
Solution 1:
Use bracket notation;
document.getElementById('some_id')[function_name]();
Post a Comment for "Call A Javascript Function Using String Name"