html5 How to display a phrase when you click on a picture

Asked 2 years ago, Updated 2 years ago, 42 views

How can I make a phrase appear when I click on a picture in HTML5? (Not a speech bubble)

html5

2022-09-22 19:56

1 Answers

<img src="image.jpg" onClick='alert("Hello World!")'/>

Please call the function on Click to display the phrase as shown in .


2022-09-22 19:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.