---
layout: api
title: "v2.1.2 JavaScript Library: Event objects"
categories: api
version: v2.1.2
permalink: /api/v2.1.2/l-event-objects/
---
<h2 id="event-objects">Event objects</h2>

<p>Event object is an object that you receive as an argument in a listener function when some event is fired, containing useful information about that event. For example:</p>

<pre><code class="javascript">map.on('click', function(e) {
	alert(e.latlng); // e is an event object (MouseEvent in this case)
});</code></pre>
