Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 681

Vbscript: How to access source html part of a webpage

$
0
0
Set IE=CreateObject("InternetExplorer.application")
IE.Visible=True
IE.Navigate "http://www.x...y.com"
Do While IE.Busy
wait 1
Loop
print IE.Document.Body.innerHTML

Code above is returning the <body> part of the html of the page loaded in a new IE window.
What I need is the <head> part of a page which is already opened in an existing IE window.

Viewing all articles
Browse latest Browse all 681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>