I have two iframes on my webpage and I don't want any frameborders on either. The first is hard coded HTML like so:
<iframe id="frm1" frameborder="0" scrolling="Auto"></iframe>
The second is created dynamically when needed using document.createElement:
var ifrm = document.createElement("IFRAME");
ifrm.id = "frm"+reverseId;
ifrm.scrolling = "Auto";
ifrm.frameborder = "0";
This works fine for the hard-coded frame but the problem is the frameborder is still there on the iframe that is dynamically created. Am I making a syntax error or does anyone know why this won't work?