call a function from a string!

by jakie8

JavaScript

function do_stuff(name){alert(name);}

var y = window['do_stuff'];

y('test');