The site seal provided by GoDaddy uses HTML code like:
<span id="siteseal"><script async type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=QbDnMaazFIO7w9NOAcnMvsbUtqu5vnUGH3pUNkBBkGMcUA1vaEhbNbYr2PKh"></script></span>
As our site has thousands of HTML pages, we prefer not to embed the HTML script in each page to avoid re-embedding a new code once the HTTPS certificate expires. So we used JavaScript to insert the GoDaddy into each page, which successfully displays the site seal without any noticeable problems. But we want to make sure this method of inserting the site seal is "safe"/has no security issues instead of using the provided standard code itself. The JavaScript code used is this:
(function(){
var siteSeal = document.createElement("script");
siteSeal.type = "text/javascript";
siteSeal.async = true;
siteSeal.src = "https://seal.godaddy.com/getSeal?sealID=QbDnMaazFIO7w9NOAcnMvsbUtqu5vnUGH3pUNkBBkGMcUA1vaEhbNbYr2PKh";
var siteSealSpan = document.createElement("span");
siteSealSpan.id = "siteseal";
siteSealSpan.setAttribute("style","margin-top:.25rem");
siteSealSpan.appendChild(siteSeal);
var siteSealLi = document.createElement("li");
siteSealLi.appendChild(siteSealSpan);
var siteSealLoc = document.getElementById("footer-list");
if (siteSealLoc) {
siteSealLoc.appendChild(siteSealLi);
}
})();