Remove favicon using javascript in Google Chrome

Posted by Cyclone on Stack Overflow See other posts from Stack Overflow or by Cyclone
Published on 2010-05-19T23:59:05Z Indexed on 2010/05/20 0:10 UTC
Read the original article Hit count: 647

Filed under:
|
|

How can you remove the favicon using Javascript in google chrome? The goal is to return it to the browser default, which is in this case a blank image.

I found this question, but it doesn't work if you leave the link.href attribute as empty.

Even if the favicon is set because there is a favicon.ico file on the server, I'd like to remove it and set it back to the default.

This only needs to work in chrome.

Thanks!

© Stack Overflow or respective owner

Related posts about favicon

Related posts about JavaScript