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 :: disable auto suggest html 
Javascript :: create a new input with type checkbox javascript 
Javascript :: react ReferenceError: regeneratorRuntime is not defined 
Javascript :: find last prisma 
Javascript :: print object in javascript 
Javascript :: check one checkbox at a time jquery 
Javascript :: error java.io.filenotfoundexception tessdata/eng.traineddata 
Javascript :: how to find index of max number in js 
Javascript :: js add id to element 
Javascript :: how to convert number to array in javascript using Array.from 
Javascript :: js generate id 
Javascript :: react dom 
Javascript :: using material ui icons in react 
Javascript :: toggle bootstrap modal with jquery 
Javascript :: NullInjectorError: R3InjectorError httpclient 
Javascript :: logic for building calculator using JavaScript without using eval 
Javascript :: click anywhere and div hide javascript 
Javascript :: node js favicon.ico 
Javascript :: javascript show 2 decimal places 
Javascript :: js convert nodelist to array 
Javascript :: how to validate file extension in javascript 
Javascript :: sequelize generate migration 
Javascript :: ElevatedButton styling 
Javascript :: randome words api 
Javascript :: react native textinput turnoff capitalize first letter 
Javascript :: how get a json object from an api in javascript 
Javascript :: jquery check input 
Javascript :: remove undefined values from object javascript 
Javascript :: jquery check if attribute exists 
Javascript :: mac install jmeter 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =