http://qs321.pair.com?node_id=64879


in reply to Executing CGI script via Javascript

You can use an onClick or onChange to execute a cgi-script by using redirection:
<HTML> <HEAD></HEAD> <BODY> <SCRIPT Language="Javascript"> function go_to() { document.location = "http://your-cgi-script.cgi"; } </SCRIPT> <IMG SRC="BLAH" onClick="go_to()"> </BODY>
Follow the good advice the others have given you for the script at the other end and you should be good to go.