Sensor (Geolocation) Chrome and Firefox

Is there a way to change the geolocation in Chrome and Firefox?