http://www.perlmonks.org?node_id=26832


in reply to How to run Javascript function from Perl script

With a Perl CGI script, you generate an HTML page. This page, can of course contain some JavaScript function inside <SCRIPT> tags...

So... you can execute any JavaScript function from a CGI script if you use a JavaScript OnLoad() function in the <BODY> tag.