function LoadStyle(url) { var script = document.createElement("script"); script.type = "text/javascript"; script.src = url; document.body.appendChild(script); } // test LoadStyle("js/demo.js");