You are here: irt.org | FAQ | JavaScript | Image | Q693 [ previous next ]
You can point the src property of an image to a CGI script - rather like a page counter - and get the CGI script to return a 1x1 pixel blank image:
<IMG SRC="cgi_script.pl" WIDTH="1" HEIGHT="1">
or, or you want to run the script after the document has finished loading:
<BODY onLoad="if (document.images) document.images['myImage'].src='cgi_script.pl'"> <IMG SRC="blank.gif" WIDTH="1" HEIGHT="1">