On zurb foundation\'s website at http://foundation.zurb.com/docs/reveal.php they listed some Options including
open: callback function that triggers \'before\' the
Call reveal like you normally would, but include the name of the option and corresponding function as an object:
reveal
//Reveal the modal and say "Good bye" when it closes $("#myModal").reveal({ "closed": function () { alert("Good bye") } });