...

View Full Version : Quick Question



holyearth
10-14-2006, 04:18 PM
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?

mrhoo
10-14-2006, 10:01 PM
Append the iframes to the body or some other element,
not the document object



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum