The dynamic html code listed below:
<link id="favicon" rel="shortcut icon" href="./favicon/favicon.ico" />
$("#favicon").attr("href","./favicon2/favicon2.ico");
Does not switch between two favicon image files on clicking of the browser tab.
View attached screenshot image for details.
Q: What is the correct code?