Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript onclick image

const image = document.getElementById('yourImage');
image.addEventListener("click", (event) => {
	// Do stuff with your event!
});
 
PREVIOUS NEXT
Tagged: #javascript #onclick #image
ADD COMMENT
Topic
Name
7+8 =