Can I Detect Whether A Browser's Bookmarks Toolbar Is Enabled With JavaScript?
I have a bookmarklet, and my users are consistently clicking it instead of dragging it to their bookmarks bar first. I'd like to add an animation which would run in response to a
Solution 1:
For security reasons (among others), no - this is not possible with JavaScript.
Even if a browser chose to make this information accessible to the client, it would not be a standard implementation (supported across multiple browsers).
Solution 2:
Put a div inside the link that holds a message when the user clicks on it use CSS to show the message. #bookmarklet:active #message{display:block;}
You will need some javascript to return false on the click event.
Post a Comment for "Can I Detect Whether A Browser's Bookmarks Toolbar Is Enabled With JavaScript?"