ajax - Can you access a client's bookmarks using javascript with their permission? - Stack Overflow

I want to make it easier for a user to import bookmarks to my server. Is there anyway to automate this

I want to make it easier for a user to import bookmarks to my server. Is there anyway to automate this process using javascript to obtain the user's bookmarks? I'm assuming the browser has to have this feature - and I'm not sure if any browser does due to the inherent security risk.

I want to make it easier for a user to import bookmarks to my server. Is there anyway to automate this process using javascript to obtain the user's bookmarks? I'm assuming the browser has to have this feature - and I'm not sure if any browser does due to the inherent security risk.

Share Improve this question edited Aug 5, 2010 at 15:12 Robusto 31.9k8 gold badges59 silver badges78 bronze badges asked Aug 5, 2010 at 15:09 FinDevFinDev 4,8377 gold badges31 silver badges29 bronze badges
Add a ment  | 

5 Answers 5

Reset to default 4

Nope, that's not possible for security/privacy reasons. The only way is to ask them explicitly through form input to give you but I don't think you want to do that.

The browser is obviously aware of their bookmarks, but no, JS cannot access this information - it would be leaking private data as you yourself have noted.

Anything you can do in JS with the user's permission can be done without their permission. The only manual control they have is "Run scripts" or "Don't".

As yourself and others have noted, it's not possible because of privacy and security implications.

What you can do however is to import bookmarks from a source (XML, JSON, HTML...). Most browsers have an export bookmarks feature that generates a file. You can parse that to get what you want.

What Sarfraz said, and thank God for it. I don't think users want people on the web to be able to access their bookmarks for any reason.

im a 100 % sure there is no way to do this in js due to the securtity risk, however its probably possible with activex but thats only available on internet explorer

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745064485a4609171.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信