Step 1: check availability of the Geolocation API

As a first step, let us just check whether the HTML5 Geolocation API is present in this browser or not.

Next