🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #78

HREF and JavaScript - Newbie question

#78
From: Greg Gagnaux
Date: Thu, 19 Nov 1998 00:00
24 lines
1412 bytes
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: <HS152.3235$%X5.8017200@newsgate.direct.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb3cb,ce7f82810d209752,start
X-Google-Attributes: gidfb3cb,public
X-Google-Thread: 10731d,ce7f82810d209752,start
X-Google-Attributes: gid10731d,public
From: "Greg Gagnaux" <gagnaux@ibm.net>
Subject: HREF and JavaScript - Newbie question
Date: 1998/11/19
Message-ID: <HS152.3235$%X5.8017200@newsgate.direct.ca>
X-Deja-AN: 413674526
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0
X-Trace: newsgate.direct.ca 911518247 204.174.254.209 (Thu, 19 Nov 1998 15:30:47 PDT)
Organization: Canada Internet Direct, Inc.
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 19 Nov 1998 15:30:47 PDT
Newsgroups: comp.lang.javascript,borland.public.intrabuilder.javascript