title: How to get the Lat, Long of a clicked location using leaflet Api
body: <p>I am using OSM with leaflet API. Now I want to get the lat and long of a clicked location. I meant something similar to this: </p>
  
  <blockquote>
    <p><a href="http://openlayers.org/dev/examples/click.html" rel="nofollow noreferrer">http://openlayers.org/dev/examples/click.html</a></p>
  </blockquote>
  
  <pre><code>map.events.register("click", map, function(e) {
              var position = map.getLonLatFromPixel(e.xy);
                  alert("Lat, Lon : "+position.lon.toFixed(3),position.lat.toFixed(3));
  
          });
  </code></pre>
  
  <p>This code in open layers helps to get the lat,long values - looking for something similar using leaflet.</p>
  
  <p>Any help would be really great. Thanks in advance</p>