View Full Version : Quick Question

10-14-2006, 03: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';

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?

10-14-2006, 09: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