Page 1 of 1

HTML inside InnerFrame

Posted: Mon Jul 07, 2003 3:44 am
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

Solved

Posted: Tue Jul 08, 2003 5:44 am
by mathewvp
The answer is to use
document.myiframe.document.body.parentElement.outerHTML

I got the answer from another forum

Posted: Tue Jul 08, 2003 6:06 am
by []InTeR[]
With a little search, everybody can find what it's searching.