Re: How do I access items of a webpage by using the WSH?
From: mayayana (mayaXXyana1a_at_mindYYspring.com)
Date: 09/20/04
- Next message: YK: "CHM Resources and Windows XP SP2"
- Previous message: Justin: "Process.start("iexplore.exe") not working if hosting webbrowser control"
- In reply to: Nick: "How do I access items of a webpage by using the WSH?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 20 Sep 2004 23:03:12 GMT
If you create an InternetExplorer.Application object
in script you can have it navigate to a page. Once
the DocumentComplete event has fired the
IE.Document and IE.Document.parentWindow are
available, giving you access to the DOM of the page.
(In IE5+ the Document.documentElement.outerHTML will give
you the full text of the webpage.)
-- -- Nick <spam@spam.de> wrote in message news:Os8lDc1nEHA.3216@tk2msftngp13.phx.gbl... > Hi, > I want to write a script in javascript in order to automate some basic steps > on a foreign webpage. > Therefore I somehow need to open a browser window or just the http stream, > open an url and access the document and its elements. > > Any hints, how to do that best or anyone has a similar script? > Thanks Nick > >
- Next message: YK: "CHM Resources and Windows XP SP2"
- Previous message: Justin: "Process.start("iexplore.exe") not working if hosting webbrowser control"
- In reply to: Nick: "How do I access items of a webpage by using the WSH?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|