Menu
I cannot access the attributs of iframe element which is just created on fly, any suggestion will be appreciate.
var ifr = document.createElement(‘iframe’);
ifr.setAttribute(“id”,”executeplace2″);
ifr.setAttribute(“name”,”executeplace2″);
ifr.setAttribute(‘src’,”);
ifr.style.border=’0px’;
ifr.style.width=’0px’;
ifr.style.height=’0px’;
document.body.appendChild(ifr);
alert(document.frames[“executeplace2”].name);
//can not access the name attribute