I have a leaflet map up and running. It overlays a series of polygons (via GeoJSON) on the map and attaches popups to each polygon. Each of the popups display information a
mapbox JavaScript library has an event:
bindPopup('Say hi'); addTo(map); $('#map').on('click', '.trigger', function() { alert('Hello from Toronto!'); });
https://www.mapbox.com/mapbox.js/example/v1.0.0/clicks-in-popups/