Javascript bookmark icon

I have a website that offers a useful bookmark link that only contains javascript and not a link to a web page. for example URL: "javascript: (function () {.....}) ();" The icon displayed on the bookmarks bar is the default image of blank paper.

Is there a way to make it have an icon of its choice, for example, favicon.ico of my site, when someone drags a link to the bookmarks bar? (for example, when your bookmark is a standard URL, for example, the URL: "www.mysite.com")

Thanks so much for your time!
JJ

+3
source share
2

, FYI:)

, . , , . , , - , HTML, , , /favicon.ico

, javascript.

+1

, , , . link .

<link rel="shortcut" HREF="/shortcut.ico">
0

Source: https://habr.com/ru/post/1777795/


All Articles