Sunday, 1 March 2020

Calling a Java-Script function named in a variable [FunctionName]

/////////
1.    window["FunctionName"]();

2.  function Abc()
            {
                alert('Function Calling');
            }

            var a = 'Abc';
            window[a]();

No comments:

Post a Comment

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...