PDA

View Full Version : innerHTML text, remove <BODY> tags?


homerUK
03-21-2003, 11:12 AM
hey,

I've created a WYSIWYG editor, and it uses an iFrame to allow people to edit their webpages... trouble is, many people dont want to actually edit the pages... they want to simply use it for formatting text...

the iframe and MS code adds a <bOdy> tag to the contents of the iframe by default...

...any ideas how to remove it?

I've tried innertHTML and outerHTML, but I dont really know whats up......

thanks....... :p

liorean
03-21-2003, 12:34 PM
innerHTML outputs the serialised object tree, NOT the source. If you want to read the source code, try using a file-loader.