// Set path to the iframe file var filePath = 'https://www.robovoucher.com/buy/list/UKT733/'; // Setup the iframe target var iframe=''; // Write the iframe to the page document.write(iframe); var myIframe = parent.document.getElementById("frame"); // Setup the width and height myIframe.height = 1000; myIframe.width = '100%'; myIframe.src = filePath; // set the style of the iframe myIframe.style.border = "0px solid #FFFFFF"; myIframe.style.padding = "0px";