Etant donn� un objet DOM, retourne une r�f�rence � l'objet document associ�
#include <IE.au3>
_IEDocGetObj ( ByRef $oObject )
$oObject | Variable objet InternetExplorer.Application, Window, Frame ou tout autre objet DOM |
Succ�s: | Retourne une variable objet pointant sur l'objet Document. |
�chec: | D�finit @error <> 0. |
@error: | 3 ($_IEStatus_InvalidDataType) - Type de donn�e invalide |
@extended: | Contient le nombre de param�tres invalides |
Etant donn� un objet DOM (par exemple, Browser, Window, Frame, iFrame, Document ou Document Element), la fonction retournera une r�f�rence � l'objet document associ�.
C'est particuli�rement utile lors de l'�criture des fonctions g�n�ralis�es lorsque vous ne pouvez pas contr�ler le type d'objet qui sera transmis.
; Ouvre un navigateur � la page d'accueil AutoIt, obtient une r�f�rence ; � l'objet document et affiche un attribut du document #include <IE.au3> #include <MsgBoxConstants.au3> Local $oIE = _IECreate("http://www.google.com") Local $oDoc = _IEDocGetObj($oIE) MsgBox($MB_SYSTEMMODAL, "Document Created Date", $oDoc.fileCreatedDate)