Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js call function by string name

function test() {
  console.log('Executed function "test".');
}

window['test']();
 
PREVIOUS NEXT
Tagged: #js #call #function #string
ADD COMMENT
Topic
Name
9+1 =