I have a JavaScript function showImage
that shows an image with a particular ID. I have an HTML link that calls that function
<a href="javascript:showImage('img1')">show image1</a>
Is it a good idea to call a JavaScript within HTML a
tag like this? It seems to work, but is this the "correct" way to do it?