You don't need to make it a link at all. Just put your image of a button, inside the tag put onclick="myFunction()"