Yep. Just tried this code in Firebug and it worked:
- Code: Select all
function myfunc() {
alert("Hello!");
}
function call_function(func) {
func();
}
call_function(myfunc);
You might wanna check it out in IE though... this is exactly the sort of thing MS likes to mess us around with.