I found this thread here on CodingForums regarding the use of Java Script to implement an iframe on a page, while at the same time remove its border: Problem removing border from iframe
Code:var iframe = document.createElement("iframe"); iframe.id = "flashlatest1"; iframe.width = "419"; iframe.height = "240"; iframe.src = "pageURL"; iframe.setAttribute("frameBorder","0"); // i did try the following line instead which didn't work... //iframe.frameBorder = "0"; iframe.scrolling = "no"; appendChild(iframe);
I'm not very familiar with java script. For this to work, do I need to create an element for each: id, width, height, src, etc.?