HTML inside InnerFrame

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
mathewvp
Forum Commoner
Posts: 28
Joined: Wed Apr 23, 2003 10:28 am

HTML inside InnerFrame

Post by mathewvp »

hi,
I have an inner frame inside an html document.On submitting the html,I need to take the html code inside the inner frame including the html and body tags.I am only able to get the code inside the body tag.
Can anybody help.

regards

mathew
mathewvp
Forum Commoner
Posts: 28
Joined: Wed Apr 23, 2003 10:28 am

Solved

Post by mathewvp »

The answer is to use
document.myiframe.document.body.parentElement.outerHTML

I got the answer from another forum
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

With a little search, everybody can find what it's searching.
Post Reply