get the html source code from iframe

G

Guoqi Zheng

Dear sir,

I am writting an WYSIWYG html editor, I need to get the html source code out
of an iframe. I know I can use innerhtml or innertext. But that will remvoe
the html header info which is what I need. html header may contains
reference to base url or style sheet information.

How can I get the full source code out of an iframe???

--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
 
R

Randy Webb

Guoqi said:
Dear sir,

I am writting an WYSIWYG html editor, I need to get the html source code out
of an iframe. I know I can use innerhtml or innertext. But that will remvoe
the html header info which is what I need. html header may contains
reference to base url or style sheet information.

How can I get the full source code out of an iframe???

..innerText is IE-only but your Editor probably is also.

document.documentElement.outerHTML will give you 99% of whats in the
current document. It doesn't give the DTD Declaration but seems to give
everything else.
 
A

Andrew Poulos

How can I stop a user's cursor from selecting/highlighting elements in a
window as they click and drag across the window? Though I want them to
still be able to click buttons etc.


Andrew Poulos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top