I want to pass an anonymous function to another function, but it doesn't seem to work as I would like.
I have attached the code, I think this will give you a better idea of ββwhat I should do.
How to successfully pass a function as an argument and then call it?
<script language="javascript" type="text/javascript"> function do_work(success) { success; } do_work(function () { alert("hello") }); </script>
javascript function
Tim ferrell
source share