wasn't sure how to write the subject, but here's what i want...
that way i can pass different functions through depending on what's needed. see what i mean?Code:function myFunction(text, number, action) { // stuff action; // more stuff } function anotherFunction(message) { alert(message); } function yetAnotherFunction(message) { confirm(message); } myFunction("sometext", 9, anotherFunction());




Bookmarks