Re: How do I access items of a webpage by using the WSH?

From: mayayana (mayaXXyana1a_at_mindYYspring.com)
Date: 09/20/04


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


Relevant Pages

  • RE: Deploying user list to workgroup
    ... Tom ... "Nick Staff" wrote: ... > You are not bothering me in the least - if anything it's my fault for giving ... > initially tested the script I didn't use multiple computer names, ...
    (microsoft.public.win2000.general)
  • Re: Displaying echos when running a script file
    ... Nick Steinmetz wrote: ... > When I run a script file I've written, the command window outputs ... > I tried playing with the function called "echo" (i.e. including the ...
    (comp.soft-sys.matlab)
  • RE: Deploying user list to workgroup
    ... You are not bothering me in the least - if anything it's my fault for giving ... initially tested the script I didn't use multiple computer names, ... (members, ForReading) ...
    (microsoft.public.win2000.general)
  • RE: Deploying user list to workgroup
    ... no matter how many are on the members list. ... "Nick Staff" wrote: ... > open the script in notepad and put an appostrophe before the line on error ... script runs and says "accounts have been ...
    (microsoft.public.win2000.general)
  • RE: Deploying user list to workgroup
    ... "Nick Staff" wrote: ... > open the script in notepad and put an appostrophe before the line on error ... script runs and says "accounts have been ... but no accounts on computers. ...
    (microsoft.public.win2000.general)