W3C home > Mailing lists > Public > www-talk@w3.org > September to October 2000

Problem with Onclick in Netscape in <IMG tag

From: Mukul Gandhi <mukulw3@yahoo.com>
Date: Mon, 4 Sep 2000 23:03:01 -0700 (PDT)
Message-ID: <20000905060301.19455.qmail@web6301.mail.yahoo.com>
To: www-talk@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:24 GMT