Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q107 How do you kick off a function with a mouse click on an image?

You are here: irt.org | FAQ | JavaScript | Image | Q107 [ previous next ]

Try:

<A HREF="#" onClick="myFunction()"><IMG SRC="myImage.gif"></a>

Or:

<A HREF="javascript:myFunction()"><IMG SRC="myImage.gif"></a>

Feedback on 'Q107 How do you kick off a function with a mouse click on an image?'

©2018 Martin Webb