Can I detect whether a browser's Bookmarks toolbar is enabled with JavaScript?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 21:20:26

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).

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!