RE: Question on JavaScript, <button> and using image

by Andrej Kostresevic <temporalassassin(at)yahoo.com>

 Date:  Thu, 3 May 2001 16:43:21 -0700 (PDT)
 To:  "Charlton,
Mark" <Mark.Charlton(at)saint-gobain.com>,
Katherine E Dungan <kedungan(at)jcpenney.com>,
hwg-languages(at)mail.hwg.org
 In-Reply-To:  CRYNT40SRV
  todo: View Thread, Original
You are probably right. I am used to working on Intranet applications, so
I dont pay too much attention to cross-browser compatibility. I do believe
that most versions of IE (at least 3 and up)do support the onClick event
for the Image element. 
Andrej
--- "Charlton, Mark" <Mark.Charlton(at)saint-gobain.com> wrote:
> I could be wrong, (and I'm sure you willl tell me if I am), but I didn't
> think an image supported onClick, and if it does, not in many browsers. 
> 
> 
> I tend to use 
> 
> <.a
>
href="javascript:launch('http://sdstest.jcpenney.com/dns/TestPop.html')"><.i
> mg src="http://sdstest/dns/helphand.gif" border='0'></a>
> 
> Regards
> 
> -----Original Message-----
> From: Andrej Kostresevic [mailto:temporalassassin(at)yahoo.com]
> Sent: Thursday, May 03, 2001 4:10 PM
> To: Katherine E Dungan; hwg-languages(at)mail.hwg.org
> Subject: Re: Question on JavaScript, <button> and using image
> 
> 
> This should work:
> <img src="button.gif"
> onClick="launch('http://sdstest.jcpenney.com/dns/TestPop.html')">
> --- Katherine E Dungan <kedungan(at)jcpenney.com> wrote:
> > >
> > 
> >      The system I am working on is actually written in Java.  It
> > generates HTML pages that require input.
> > The question/problem I am having is I want to add a pop up help window
> > on the client side (without returning to the server) and would like to
> > use an animated gif as the button.  I
> > inserted the '.' in the following code
> > for printing reasons.  They do not exist in the actual code.
> > 
> > I can get the following to work:
> >     <.INPUT TYPE="Button" NAME="Button" VALUE="HELP"
> > onClick="launch('http://sdstest/dns/TestPop.html') ";
> > 
> > However, that is just a plain old gray button.
> > 
> > The code I am UNable to get to work is
> > <.BUTTON TYPE="BUTTON" NAME="Button" VALUE="Button"
> > onClick="launch('http://sdstest.jcpenney.com/dns/TestPop.html')"><.img
> > src="http://sdstest/dns/helphand.gif"
> > border="no"><./BUTTON>
> > 
> > 
> > The javascript code :
> > 
> >  function launch(url)
> > {
> > remote = open(url,"HELP","scrollbars,status,width=200,height=300");
> > }
> > 
> > --
> > Have a wonderful day,
> > 
> > Katherine Dungan
> > 
> > email : kedungan(at)jcpenney.com
> > 
> > 
> 
> 
> =====
> /***********************************
> Andrej Kostresevic
> Project manager, Senior Developer
> ~~~~~~~~~~~~Strashev~~~~~~~~~~~~
> Consulting, Design & Development
> ***********************************/
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA