How to change favicon from code?

Hi,
I want to change favicon from code. Is there any way to do it?

Hi @HasnainX,

I think you can do it using Javascript, check this stackoverflow thread:

Though search engines and other meta scrappers that scan only the HTML won’t pick that change up.

2 Likes