Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
187
rated 0 times [  189] [ 2]  / answers: 1 / hits: 17250  / 13 Years ago, fri, july 29, 2011, 12:00:00

The problem is next:
Assume that we have a select.
Onchange event we need to call some function, but name of this function kept in variable.
How to call this function ?


More From » function

 Answers
97
window[name]()


You can call functions by name reference by selecting them as a property of window and executing them


[#90931] Wednesday, July 27, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
parker

Total Points: 259
Total Questions: 109
Total Answers: 97

Location: Zambia
Member since Thu, Jun 25, 2020
4 Years ago
;