Articles on: Advanced Topics

Can I trigger javascript when the map marker window is opened?

Yes.  In MetaLocator you can add Javascript to the Advanced > Header setting.  The below example will watch the ml_markeropened event and trigger custom code as needed.
​


<script>  
 jqLocator( "body" ).on( "ml_markeropened", function(e) {
   alert('You opened a window!');
});
 </script>

Updated on: 12/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!