NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:
If you want to execute a javascript function in your HTML page you will need to be looking at onClick event handlers in JavaScript
If you want your Perl script to output HTML with JavaScript in the source you could trigger stuff with a body onLoad event?