I am trying to insert an iframe into the browser DOM via javascript and want to remove the border if IE but can\'t seem to. I have tried these to no avail:
i
Bizarrely, I was looking for an answer to this very issue myself earlier today. I found that setting the frameBorder
to 0
property does work, so long as you do it before the iframe is added to the document.
var iframe = document.createElement("iframe");
iframe.frameBorder = 0;
document.body.appendChild(iframe);