Custom Trigger Event
/* place inside function */ jQuery.event.trigger('OverlayBoxonOpen'); /* call custom event */ $(document).bind('OverlayBoxonOpen', function () { alert('test') });