How to insert in image link, popup box etc

Here is an extract of my coding

function displayTitle(name) {
return name + " <a href=‘#’ ><img src=‘direction.png’ alt=‘Get driving directions’/></a>";

I have a map inserted into my aspx page.
When I click on one icon, the name and the direction.png picture will appear as a pop up box within the map

I want to make the direction.png picture into a link, whereby when I click on it, a pop up box will appear.