Link to home
Start Free TrialLog in
Avatar of tmmet
tmmet

asked on

Creating IFrames

Hi,
I want to create IFrames at runtime.
I used document.write("<IFrame ...></IFrame>").
It worked fine. Each IFrames has set of links and caption. So,I've to create 2 rows for each IFrame.What is the best way to do this?.
One way is creating a table inside each IFrame and the other way is create two <Div> tags .One for the caption and other for the links.These 2 div tags should be inside the IFrame.

Is there any other way to do this?.
I'm creating the IFrame at runtime.
Any ideas/suggestions can be very useful for me.
Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of remibrom
remibrom

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tmmet
tmmet

ASKER

Hi,
Thanks for our reply.how can I embed 2 DIV tags inside my IFrame?.I tried using document.all.myIFrame.innerHTML = ....
Its giving error.Any ideas/suggestions will be greatly helpful for me.Thanks in advance.
Avatar of tmmet

ASKER

Hi,
Thanks for our reply.how can I embed 2 DIV tags inside my IFrame?.I tried using document.all.myIFrame.innerHTML = ....
Its giving error.Any ideas/suggestions will be greatly helpful for me.Thanks in advance.
Ah, so you ARE embedding at run time.  To change HTML (including DIVs) at runtime, check at http://msdn.microsoft.com/msdn-online/workshop/author/dhtml/reference/properties/innerHTML.asp