Bruno
Bruno

Reputation: 9037

Bookmarks API on Firefox

Are there any API on Firefox to retrieve the users' bookmarks with javascript ?

thanks,

Bruno

Upvotes: 4

Views: 2296

Answers (2)

i_am_jorf
i_am_jorf

Reputation: 54600

IE doesn't expose Javascript APIs for access to Favorites. You can write Win32 code to enumerate the shortcut files in the favorites folder and then use the appropriate COM goo to crack open the data in the .url files themselves.

Upvotes: 1

winterTTr
winterTTr

Reputation: 1768

For firefox , you can use bookmark service in javascript via XPConnect. But these code may give user warning as the result of the privilege reason.

For more information about the code, you can refer to the online documents here https://developer.mozilla.org/en/Code_snippets/Bookmarks

Upvotes: 3

Related Questions