+ 1
How to create a JavaScript alert using image tag ?
5 odpowiedzi
+ 5
<img src='photo.jpg' alt='photo' onclick='alert("hello world")'>
+ 3
https://code.sololearn.com/WKxUcVEVGHWZ/?ref=app this code might worked
+ 2
created by michael and edited by me
+ 2
@Akash Pawer It only works if the image doesn't exist:\