var iframe = document.createElement("iframe"); iframe.id = Math.random(); iframe.src = "https://mijn.svmnivo.nl/link/WPBooking/bf3c5e5d-1017-4599-bd5e-c716c9dcf302?rand=" + Math.random(); iframe.height = "100%"; iframe.style.width = "100%"; iframe.width = "100%"; iframe.style.height = "100%"; iframe.setAttribute("frameborder", 0); iframe.setAttribute("scrolling", "no"); iframe.setAttribute("seamless", "seamless"); iframe.setAttribute("class", "iframeclass"); document.getElementById("iframewrap").appendChild(iframe);