autoit3 ie.au3 函数之——_IEDocGetObj

_IEDocGetObj: Given any DOM object, returns a reference to the associated document object.

即: 给定任意的DOM对象,返回相关文档对象的参考.


#include <IE.au3>
_IEDocGetObj ( ByRef $o_object )


例子:

; *******************************************************
; Example 1 - Open a browser to the AutoIt Homepage, get a reference
;               to the document object and display a document attribute
; *******************************************************
;

#include <IE.au3>
$oIE = _IECreate ("http://www.baidu.com")
$oDoc = _IEDocGetObj ($oIE)

;MsgBox(0, "Document Created Date", $oDoc.fileCreatedDate)
;MsgBox(0, "Document Created Date", $oDoc.url)
;MsgBox(0, "Document Created Date", $oDoc.title)
MsgBox(0, "Document Created Date", $oDoc.domain)




你可能感兴趣的:(autoit3 ie.au3 函数之——_IEDocGetObj)