open google map with latitude and longitude javascript

JavaScript
// The best way is to use q parameter so that it displays the map with the point marked. eg.:

https://maps.google.com/?q=<lat>,<lng>

Source

Also in JavaScript: