###User Defined Function###
_IEBodyWriteHTML

###Description###
Replaces the HTML inside the &lt;body&gt; tag of the document.

###Syntax###
#include <IE.au3>
_IEBodyWriteHTML ( ByRef $o_object, $s_html )


###Parameters###
@@ParamTable@@
$o_object
	Object variable of an InternetExplorer.Application, Window or Frame object
$s_html
	The HTML string to write to the document
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	None
Failure:	0 or -1 and sets the @error flag to non-zero.
@error:	1 ($_IEStatus_GeneralError) - General Error
	2 ($_IEStatus_COMError) - COM Error in Object reference
	3 ($_IEStatus_InvalidDataType) - Invalid Data Type
	4 ($_IEStatus_InvalidObjectType) - Invalid Object Type
	6 ($_IEStatus_LoadWaitTimeout) - Load Wait Timeout
	8 ($_IEStatus_AccessIsDenied) - Access Is Denied
	9 ($_IEStatus_ClientDisconnected) = Client Disconnected
@extended:	Contains invalid parameter number
@@End@@


###Remarks###
You may use <a href="_IEBodyReadHTML.htm">_IEBodyReadHTML()</a> to read the current HTML contents of the document body, manipulat that string and then write it back with <a href="_IEBodyWriteHTML.htm">_IEBodyWriteHTML()</a>.
You may also use <a href="_IEDocInsertHTML.htm">_IEDocInsertHTML()</a>, <a href="_IEDocInsertText.htm">_IEDocInsertText()</a> and the innerHTML, innerText, outerHTML and outerText features of <a href="_IEPropertyGet.htm">_IEPropertyGet()</a> and <a href="_IEPropertySet.htm">_IEPropertySet()</a> to control specific elements without rewriting large blocks of text.


###Related###
_IEBodyReadHTML, _IEBodyReadText, _IEDocInsertHTML, _IEDocInsertText, _IEPropertyGet, _IEPropertySet, _IELoadWait


###Example###
@@IncludeExample@@
