Reputation: 33
I faced with a problem and right now I don't know how to solve.
I'm using some platform where I can create a shop and sell some goods. This platform allows users customize shop style and some code into header and footer. The big minus of that platform is there is no search. Well, I try to add google search into the website. Google give javascript code to add website. But problem is that platform not allow you add <script>
tag into header.
Is there any way to add code into header without <script>
tag?
Upvotes: 1
Views: 1374
Reputation: 21
var x = document.createElement("script");
x.type = "text/javascript";
x.src = "jsfile.js";
document.body.appendChild(x);
Upvotes: 1