Function Reference


_IEBodyReadHTML

Returns the HTML inside the <body> tag of the document

#include <IE.au3>
_IEBodyReadHTML ( ByRef $oObject )

Parameters

$oObject Object variable of an InternetExplorer.Application, Window or Frame object

Return Value

Success: an HTML included in the <body> of the document.
Failure: sets the @error flag to non-zero.
@error: 3 ($_IEStatus_InvalidDataType) - Invalid Data Type
@extended: Contains invalid parameter number

Remarks

This function uses the .innerHTML property of the document Body.
.innerHTML is available for nearly all DOM elements using _IEPropertyGet().

Related

_IEBodyReadText, _IEBodyWriteHTML, _IEDocInsertHTML, _IEDocInsertText, _IEDocReadHTML, _IEPropertyGet

Example

; Open a browser with the basic example, ready the body HTML,
; append new HTML to the original and write it back to the browser

#include <IE.au3>

Local $oIE = _IE_Example("basic")
Local $sHTML = _IEBodyReadHTML($oIE)
$sHTML = $sHTML & "<p><font color=red size=+5>Big RED text!</font>"
_IEBodyWriteHTML($oIE, $sHTML)