var form = document.getElementById('nx_form'); if(form) { form.innerHTML = ''; var iframe = document.createElement('iframe'); var src = "http://www.furnaceprices.org/form.html"; iframe.setAttribute("src", src); iframe.setAttribute("height", "100%"); iframe.setAttribute("width", "100%"); iframe.setAttribute("frameBorder", "no"); iframe.setAttribute("scrolling", "no"); iframe.setAttribute("noResize", "true"); iframe.setAttribute("vspace", "0"); iframe.setAttribute("hspace", "0"); form.appendChild(iframe); }else{ exit; }