Web Analytics Made Easy -
StatCounter Quick Question - CodingForum

Announcement

Collapse
No announcement yet.

Quick Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Quick Question

    I've got this bit of javascript:

    IFrames = document.getElementsByTagName('IFRAME');
    if(Threads > IFrames.length)
    for(i = IFrames.length+1; i <= Threads; i++)
    {
    oIFrm = document.createElement('IFRAME');
    oIFrm.name = 'i'+i;
    oIFrm.width = '10';
    oIFrm.height = '10';
    oIFrm.scrolling = 'no';
    oIFrm.frameBorder= 'no';
    document.appendChild(oIFrm);
    }

    When the function is called, it's not showing the iframes in the document. They are loaded but not shown. Where did I go wrong?

  • #2
    Append the iframes to the body or some other element,
    not the document object

    Comment

    Working...
    X