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.
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.