Article View: comp.lang.javascript
Article #80Re: HREF and JavaScript - Newbie question
From: IC
Date: Thu, 19 Nov 1998 00:00
Date: Thu, 19 Nov 1998 00:00
41 lines
1563 bytes
1563 bytes
ya <a href="javascript: myFunc()">whatever</a> or you can use an onmouseclick on the image or whatever. -- Duan Nguyen http://www.3-cities.com/~duan Greg Gagnaux <gagnaux@ibm.net> wrote in message news:HS152.3235$%X5.8017200@newsgate.direct.ca... >Now let me see if I can ask the correct question (I'm a total newbie >to this) > >Is it possible to invoke a JavaScript function via an Image's HREF. > >ie > ><a href="somepage.asp" target="_top"><img >src="../../images/formbuttons/save.gif" border="0" alt="Add a new >incident step" WIDTH="47" HEIGHT="24"></a> > >but instead do something like this > ><a href=some JavaScript code target="_top"><img >src="../../images/formbuttons/save.gif" border="0" alt="Add a new >incident step" WIDTH="47" HEIGHT="24"></a> > > >Thanks in advance! > > >Greg Gagnaux >Mindquake Software Inc >ggagnaux@mindquake.com > > >
Technical Details
Message-ID:
<3654ad74.0@news-out2.newsnerds.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<HS152.3235$%X5.8017200@newsgate.direct.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10731d,ce7f82810d209752 X-Google-Attributes: gid10731d,public X-Google-Thread: fb3cb,ce7f82810d209752 X-Google-Attributes: gidfb3cb,public From: "IC" <duan@bossig.com> Subject: Re: HREF and JavaScript - Newbie question Date: 1998/11/19 Message-ID: <3654ad74.0@news-out2.newsnerds.com> X-Deja-AN: 413745166 References: <HS152.3235$%X5.8017200@newsgate.direct.ca> X-Trace: 19 Nov 1998 17:44:52 -0600, borg.3-cities.com X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: comp.lang.javascript,borland.public.intrabuilder.javascript X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800