最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Overwriting Browser GeoLocation Notification - Stack Overflow

programmeradmin0浏览0评论

I am getting ready to work with the HTML5 GeoLocation API and I would like to know if it is currently possible to overwrite/style the default browser notification for accepting GeoLocation?

The biggest issue is lack of control over the messaging and how to control what we are telling users about our intent with using their GeoLocation.

It seems pointless to pop-up something on top of the current acceptance options to give the user more detail.

Thanks!

I am getting ready to work with the HTML5 GeoLocation API and I would like to know if it is currently possible to overwrite/style the default browser notification for accepting GeoLocation?

The biggest issue is lack of control over the messaging and how to control what we are telling users about our intent with using their GeoLocation.

It seems pointless to pop-up something on top of the current acceptance options to give the user more detail.

Thanks!

Share Improve this question asked Apr 20, 2011 at 14:41 SethSeth 6,2603 gold badges30 silver badges44 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 4

There is no way to customize these messages. All of the notifications are pletely different from user agent to user agent.

Could you not pop up a message before you call navigator.geolocation to give you users more information. That way at least you wouldn't have both messages on screen at once. Something like this: http://jsfiddle/thebeebs/bTWhd/1/

No these are part of the native browser and are intentionally un-editable for security and privacy reasons.

There's going to be no standard way of doing this for all browsers. It would be probably be best to do this with a tooltip if you don't want the user to have to click through multiple messages.

发布评论

评论列表(0)

  1. 暂无评论