Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

change favicon with javascript

(function() {
    var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
    link.type = 'image/x-icon';
    link.rel = 'shortcut icon';
    link.href = 'http://www.stackoverflow.com/favicon.ico';
    document.getElementsByTagName('head')[0].appendChild(link);
})();
Comment

PREVIOUS NEXT
Code Example
Javascript :: new react 
Javascript :: how to generate random ip address in javascript 
Javascript :: mongoose query document 
Javascript :: dynamic styles in react native 
Javascript :: what is callback hell in javascript 
Javascript :: js DFS 
Javascript :: event solidity 
Javascript :: jsx attributes 
Javascript :: open json javascript 
Javascript :: how to set width 100 react native 
Javascript :: javascript buffer to file 
Javascript :: ajax post request 
Javascript :: knexjs char 
Javascript :: _.isString 
Javascript :: ref.current.selectionStart 
Javascript :: print blade value in js 
Javascript :: JavaScript Methods and this Keyword 
Javascript :: javascript Passing Parameter as Default Values 
Javascript :: date methods javascript 
Javascript :: JavaScript HTML DOM Collections 
Javascript :: card types regex 
Javascript :: Remove key from obj and save in diff obj 
Javascript :: get html element coords with js 
Javascript :: phaser place on rectangle shift 
Javascript :: phaser reverse animation 
Javascript :: Clean way to remove text and keep div inside a div jquery 
Javascript :: nodejs stream pipeline with custom transform 
Javascript :: javascript list all elements in set 
Javascript :: learn javascript 
Javascript :: javascript trunc 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =