Javascript – How to know if url is already bookmarked


I am adding bookmark from code. Now in Firefox if user already added the url as bookmark he should not be able to bookmark it again. How can I do it? For now every time a new bookmark is getting created.

Best Solution

If you want to prevent people from clicking a bookmark link on your website for a second time, you could try to write using cookies to hide the link if there's a cookie on the client.

As far as I know trying to check the bookmarks library (Places) in FireFox by using javascript on your website, that is impossible.