Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html img onclick

just add a onclick property to your element like so :
<img src="whtever" onclick"alert('what you want to hapen when clicked by using js')">
Comment

PREVIOUS NEXT
Code Example
Html :: bootstrap 4 6 cdn 
Html :: how to download folder using scp 
Html :: html button send post request 
Html :: vertical line in html 
Html :: add a gif a background image in html 
Html :: Html.ActionLink with parameters 
Html :: angular input onchange 
Html :: html date min max 
Html :: how to link js to html 
Html :: ngif async pipe 
Html :: html samp 
Html :: tailwind css toggle 
Html :: disable input type button in html 
Html :: html input js onclick button click 
Html :: how to hide image in html 
Html :: autocomplete="off" 
Html :: html images with link 
Html :: ng bootstrap input 
Html :: bootstrap 5 input group 
Html :: HTML <i and <em Elements 
Html :: how to make a draggable menu html/js jquery 
Html :: index.html favicon.ico 404 (Not Found) 
Html :: tailwind css dropdown 
Html :: bootstrap 4.5 bold 
Html :: apply image in body without css 
Html :: where we can store image in django project to so that t can work in html file 
Html :: jquery insert html into iframe 
Html :: ionic 5-star-rating 
Html :: table column width 
Html :: angular 2 input file change value 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =