###User Defined Function###
_IEDocWriteHTML

###Description###
Replaces the HTML for the entire document.

###Syntax###
#include <IE.au3>
_IEDocWriteHTML ( 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###
This function completely replaces the content of the document in a browser or a frame.
It can be used to create a new page with custom HTML and JavaScript.

It is sometimes necessary to refresh the page after writing with <a href="_IEAction.htm">_IEAction</a>($oIE, "refresh") (e,g, after creating a FRAMESET).


###Related###
_IEDocReadHTML, _IELoadWait


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