Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Can my Perl CGI script open a new browser tab or window?

by Corion (Pope)
on Dec 16, 2019 at 11:47 UTC ( #11110238=note: print w/replies, xml ) Need Help??


in reply to Can my Perl CGI script open a new browser tab or window?

Yes, this is possible, but sounds like a very roundabout way of going at it.

See the target="_blank" attribute for links and (I guess) HTML forms.

See WWW::Mechanize::Chrome for a module by me which allows web scraping and running of Javascript. It needs Google Chrome or Chromium installed though.

Replies are listed 'Best First'.
Re^2: Can my Perl CGI script open a new browser tab or window?
by SergioQ (Acolyte) on Dec 17, 2019 at 15:45 UTC
    Forgive my being rep repetitive, but I wanted to make sure: My Perl script is on one machine and the browser (in this case Chrome) would be on another machine. So wanted to make sure it works that way. Or does the Perl script have to be local Chrome machine??

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11110238]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2020-05-25 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (143 votes). Check out past polls.

    Notices?