You can serve up images, embedded movies, files to download, MP3s, Java applets, and even client-side scripts with CGI. It's just a matter of *what* you print to STDOUT (which is sent to the browser).
The CGI.pm module even supports including JavaScript, as evidenced by the following snippet:
print $q->start_html(-title=>'The Riddle of the Sphinx',
-script=>{-language=>'JAVASCRIPT',
-src=>'/javascript/sphinx.js'}
);
I would imagine that something such as:
<script>
window.alert("Your Message Here");
</script>
would suffice. |