Answers for "How to add a css file to javascript file"

7

javascript css link append

document.getElementsByTagName("head")[0].insertAdjacentHTML(
    "beforeend",
    "<link rel=\"stylesheet\" href=\"path/to/style.css\" />");
Posted by: Guest on March-20-2020

Code answers related to "How to add a css file to javascript file"

Code answers related to "Javascript"

Browse Popular Code Answers by Language