Returns the HTML inside the <body> tag of the document
#include <IE.au3>
_IEBodyReadHTML ( ByRef $oObject )
$oObject | Object variable of an InternetExplorer.Application, Window or Frame object |
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 |
This function uses the .innerHTML property of the document Body.
.innerHTML is available for nearly all DOM elements using _IEPropertyGet().
_IEBodyReadText, _IEBodyWriteHTML, _IEDocInsertHTML, _IEDocInsertText, _IEDocReadHTML, _IEPropertyGet
; 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)