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 :: html deactivate scrolling 
Html :: navbar horizontal in html 
Html :: html insert image 
Html :: node mailer send html 
Html :: html ms-text-size-adjust 
Html :: italic in html 
Html :: bootstrap 5 font color 
Html :: how to make a username and password in html 
Html :: simple html report template 
Html :: Chrome Extension change popup 
Html :: django html vscode 
Html :: template html 
Html :: color picker js 
Html :: menu vertical html 
Html :: a tag download csv save download 
Html :: HTML5 Video tag not working in Safari , iPhone and iPad 
Html :: change html element 
Html :: alpine hide element after set time 
Html :: html code heavy left arrow 
Html :: free landing page template html5 
Html :: how to block futer date input 
Html :: add html to page chrome extension 
Html :: game html 
Html :: fork me github code 
Html :: how to resize all images in a class html 
Html :: scroll to section href 
Html :: bootstrap table 
Html :: insert html in html page 
Html :: aria label 
Html :: underline text html 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =