Problem with Onclick in Netscape in
daemon@ATHENA.MIT.EDU (Mukul Gandhi)
Tue Sep 5 02:16:52 2000
Message-ID: <20000905060301.19455.qmail@web6301.mail.yahoo.com>
Date: Mon, 4 Sep 2000 23:03:01 -0700 (PDT)
From: Mukul Gandhi <mukulw3@yahoo.com>
To: www-talk@w3.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Resent-From: 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/