So let's say that I have this function:
function a(message) { alert(message); }
And I want to have a callback after the warning window displays. Something like that:
a("Hi.", function() {});
I am not sure how to have a callback inside the function that I am calling.
(I just use the warning window as an example)
Thanks!
javascript callback
ConnorLaCombe
source share