in reply to call js function from CGI?
If you don't want to write javascript but want your javascript to hook into a perl function in an asynchronous way then take a look at CGI::Ajax.
However, if you simply want to include some javascript in your output then include the javascript by the standard HTML-based methods and the event triggers in your page output in the ways others have suggested here.
|
|---|