In Chrome, you can set the color of a tab with a meta tag:
<meta name="theme-color" content="#FFA000">
I have several color-coded sections on my site. To make it look better, I would like to dynamically change the color of the tab in accordance with the currently open section. I tried to do this using jQuery:
$("meta[name='theme-color']").attr('content', '#455A64');
But that does not work. I would be very happy if someone told me if / how you can change this meta-value at runtime.
Edit: after some checks, I noticed that the code changes the contents of the meta tag, but Chrome does not update the color of the tab.
javascript jquery android google-chrome meta-tags
Sir_baaron
source share