probably it can be done with client side PerlScript, but
i doubt you mean that.
to "communicate" from a HTML page to a server side perl
script (via CGI) one usually uses HTML forms with fields or via
a link. please elaborate what you want to do.
seeing if a page has finished loading is also only possible
with client side scripting.
, e.g.