Problem with Onclick in Netscape in <IMG tag

Hi ,
I have written a JavaScript method in HTML file which
performs HTTP post operation as shown below -
function go()
{
  document.form.action="http://server/cgi-script";
  document.form.method="POST";
  document.form.submit();
}

Then I am invoking this JavaScript method in HTML page
as -
<IMG SCR="image.jpg" onClick = 'go()'> . This works
fine in IE 5, but in Netscape 4.7 it does,nt work. Is
there any workaround, when I can do this operation in
both the browsers(IE 4 and above + Netscape 4 and
above).
I have to perform POST only and cannot make this image
as a link and do GET operation.

Pl reply at mgandhi@bhartitelesoft.com

regards
-mukul

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Received on Tuesday, 5 September 2000 02:03:03 UTC