// Set path to the iframe file var filePath = 'http://www.robovoucher.com/buy/list/UKQSK6/'; // 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";