in reply to Re: How to handle javascript
in thread How to handle javascript
Thenour @URLS; my $runtime = JavaScript::Runtime->new();; my $context = $runtime->create_context(); $context->bind_function( name => 'open', func => sub { push(@URLS, @_); return 0; } );
will push http://bob.com/ onto @URLS.$context->eval(q(open("http://bob.com/")))
|
|---|