test widget
window.onload = function(){ var widgetIFrameHead = document.getElementById(“”ss-new-widget-iframe””).contentWindow.document.getElementsByTagName(“”head””)[0]; var widgetIframeBody = document.getElementById(“”ss-new-widget-iframe””).contentWindow.document.getElementsByTagName(“”body””)[0]; var widgetScript = document.createElement(“”script””); var widgetContainer = document.createElement(“”div””); widgetContainer.id = “”ss-new-widget-container””; widgetScript.type = “”text/javascript””; widgetScript.setAttribute( “”data-company-profile-name””, “”premier-nationwide-lending”” ); widgetScript.setAttribute( “”data-profile-name””, “”premier-nationwide-lending”” ); widgetScript.setAttribute( “”data-profile-level””, “”COMPANY”” ); widgetScript.setAttribute( “”data-container””, “”ss-new-widget-container”” ); widgetScript.setAttribute(“”id””,””ss-new-widget-js””); widgetScript.src = “”https://don7n2as2v6aa.cloudfront.net/widget/js/ss-widget-bootstrap.js””; widgetIFrameHead.appendChild(widgetScript); widgetIframeBody.appendChild(widgetContainer);};