Answers for "javascript load script url"

0

link external file by url using javascript

$('head').append('<link rel="stylesheet" type="text/css" href="{url}">')
Posted by: Guest on May-28-2021
0

How to add js file to a site through url

var jsFile = document.createElement("script");
jsFile.src = "homePage.js";  // it can be path also  "{themes('/scripts/homePage.js')}"
document.body.appendChild(jsFile);  //append it as src to body
Posted by: Guest on October-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language