// this assumes that in the html that there is an Element named "dynamic" // note the order of the css files matters let files = (new URLSearchParams(document.location.search).get("css") ); if (files != null) files.split(" ").forEach(file=>{ addLink(file); }); function addLink(file){ // link the csss file const fileref=document.createElement("link"); fileref.setAttribute("rel", "stylesheet"); //fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", file); document.getElementsByTagName("head")[0].appendChild(fileref); // show what was added and give access to the css file const info = htmlToElement(`