Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html image onclick

<!-- Have JavaScript open current image in a new window -->
<img src="https://i.imgur.com/7KpCS0Y.jpg" onclick="window.open(this.src)">
Comment

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 :: Vertically align text next to an image? 
Html :: get image from google drive 
Html :: nuxt title page 
Html :: cache control html 
Html :: highlightjs 
Html :: website 
Html :: lato google fonts 
Html :: HTML Tag Checker Online 
Html :: how to download in html 
Html :: open link as a number 
Html :: bootstrap hamburger menu 
Html :: definition list in html 
Html :: ordering collumns in bootstrap 
Html :: html always show scrollbar 
Html :: ancres html 
Html :: vs code view release notes 
Html :: ionic 5-star-rating 
Html :: html table link 
Html :: link to external site html 
Html :: block level elements 
Html :: slick slider pause on video play 
Html :: ios viewport cover 
Html :: image as banner html 
Html :: html link weiterleitung 
Html :: how to use style in html 
Html :: what does html mean 
Html :: show google map in html 
Html :: input range event 
Html :: html definition list 
Html :: links in html 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =