Answers for "how to link an image to html"

2

how to link a image in html

<html>
  <head>

  </head>
  <body>
  
<img alt="image" src="image.png" onclick="imageClicked()">

    
<script> 
   function imageClicked() {
     window.open("https://www.google.com");
   	}
</script>
    
    
  </body>
</html>
Posted by: Guest on July-19-2021

Code answers related to "how to link an image to html"

Browse Popular Code Answers by Language