_IEDocGetObj
Given any DOM object, returns a reference to the associated document object.
#include <IE.au3>
_IEDocGetObj(ByRef $o_object)
Параметры
| $o_object | Переменная объекта InternetExplorer.Application, Window, Frame or any DOM object |
Возвращаемое значение
| Успех: | Возвращает an object variable pointing to the Document object |
| Ошибка: | Возвращает 0 и устанавливает @error |
| @error: | 0 ($_IEStatus_Success) = Нет ошибок |
| 3 ($_IEStatus_InvalidDataType) = Неверный тип данных | |
| @extended: | Содержит номер неверного параметра |
Примечания
Given any DOM object (e.g. Browser, Window, Frame, iFrame, Document or Document Element) this will return a reference to the associated document object. It is particularly useful when writing generalized functions when you cannot control the type of object that will be passed in.Пример

; Пример 1 - get a reference to the document object and display a document attribute
#include <IE.au3>
$oIE = _IECreate ("http://www.autoitscript.com") ; Открывает домашнюю страницу AutoIt
$oDoc = _IEDocGetObj ($oIE)
MsgBox(4096, "Document Created Date", $oDoc.fileCreatedDate)