OVH Cloud OVH Cloud

Source d'une page dans IE

2 réponses
Avatar
Christophe CHENAVIER
Bonjour,

Avec le script suivant j'obtiens le BODY de la page HTML affichée dans IE.

Set oIE = CreateObject("InternetExplorer.Application")
With oIE
.Navigate "www.google.fr"
Do While .Busy
Wscript.Sleep 200
Loop
.Visible = 2
wscript.echo .Document.Body.InnerHTML
End With

Comment obtenir toute la page HTML ?

Christophe.

2 réponses

Avatar
Jean
Bonjour,

'---8<---
Set oIE = CreateObject("InternetExplorer.Application")
With oIE
.Navigate "www.google.fr"
Do While .Busy
Wscript.Sleep 200
Loop
.Visible = 2
wscript.echo .Document.DocumentElement.OuterHTML
End With
'---8<---

Amicalement,

Jean - JMST
Belgium

"Christophe CHENAVIER" a écrit dans le message de news:%
Bonjour,

Avec le script suivant j'obtiens le BODY de la page HTML affichée dans IE.

Set oIE = CreateObject("InternetExplorer.Application")
With oIE
.Navigate "www.google.fr"
Do While .Busy
Wscript.Sleep 200
Loop
.Visible = 2
wscript.echo .Document.Body.InnerHTML
End With

Comment obtenir toute la page HTML ?

Christophe.




Avatar
Christophe CHENAVIER