Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q693 How do I run a CGI script without returning anything?

irt.org | Knowledge Base | JavaScript | Image | Q693 [ previous next ]

Q693 How do I run a CGI script without returning anything?

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">

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.