How to remove border from iframe in IE using javascript
border, iframe, internet-explorer, javascript
Solution
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);
Problem
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: ``` iframeElement.style.borderStyle="none"; ``` and ``` iframeElement.style.frameBorder = "0"; ``` Any suggestions will be much appreciated.