triggering onclick events view PERL?

Jim Dixon jdd at dixons.org
Mon Jan 6 20:13:27 GMT 2003


On Mon, 6 Jan 2003, Jonathan Belson wrote:

> I'm trying to write a PERL script to shamelessly steal some cool
> stuff from a web site I've found.  There are modules for parsing HTML
> and extracting tokens, but this site uses javascript to accress the
> html in question.  For example:
>
> <A HREF="" onclick="openWindow(1); return false;">a link</A>
>
> What I need is a way to convince the site that the link has been
> clicked so it will open the associated web page.
>
> Is there any way to do this?

a) download the Web page
b) use vi to get rid of the javascript
c) access the modified page on your machine using your browser

--
Jim Dixon  jdd at dixons.org   tel +44 117 982 0786  mobile +44 797 373 7881





More information about the Ukfreebsd mailing list