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.
In reply to Re: call js function from CGI?
by LesleyB
in thread call js function from CGI?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |