const retourlink = new URLSearchParams(window.location.search).get('retourlink'); var iframe = document.createElement('iframe'); iframe.src = retourlink ? 'https://fb.cfg.pro.moogue.com/?retourlink=' + retourlink : 'https://fb.cfg.pro.moogue.com/'; iframe.style = 'width: 100%; height: 80vh; border: none;'; var configuratorDiv = document.getElementById('configurator'); configuratorDiv.appendChild(iframe);