const iframe = document.createElement('iframe'); iframe.style.height = '600px'; iframe.style.width = '100%'; iframe.id = 'kr-bankruptcy-frame'; iframe.class= 'kr-bankruptcy-content'; iframe.src = 'https://kreditrapporten.se/crosscontent/bankruptcies?a=b&clientId=6587452&year=0&month=0&city=&county=&municipality=&snis=&sniGroup=&mainSnis=&mainSniGroup=&topic=&sortBy='; iframe.frameborder = '0'; iframe.scrolling = 'auto'; iframe.frameBorder = '0'; document.getElementById('kr-crosscontent').parentElement.appendChild(iframe);