Many modern mobile phones (google nexus one etc.) have some kind of built in location service.
when i go to a some website (eg. google.com) that website asks if I\'m willing to
If geolocation services are exposed to the browser on a mobile platform, they will be available to a web app (as opposed to a native app) through Javascript.
For Safari on iPhone, see Getting Geographic Locations in the Safari Web Content Guide.