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>
Did this answer your question?