How to have favicon / icon set when bookmarklet dragged to toolbar?

Posted by Pistos on Stack Overflow See other posts from Stack Overflow or by Pistos
Published on 2009-02-06T16:39:51Z Indexed on 2010/06/17 13:23 UTC
Read the original article Hit count: 246

Filed under:
|
|
|
|

I've made myself a bookmarklet, and it functions just fine, but when added to a toolbar in Opera or Firefox, it just takes on the default bookmark icon for the browser (a globe and a star, respectively). My site has a favicon, and the window, tab and even [site] bookmark uses the favicon I've specified. Just not my bookmarklet.

How can I code my site or bookmarklet so that the bookmarklet gets the favicon, too?

I'm aware of various manual hackery techniques users can use to set the favicon after the fact, but those are undesirable solutions.

© Stack Overflow or respective owner

Related posts about web

Related posts about browser