mdn getCurrentPosition

navigator.geolocation.getCurrentPosition(success, error, options)
Dizzy Dog