I was wondering if some one could point me in the right direction with making an image show how many times it's been clicked.
popinthecan
0
Newbie Poster
Recommended Answers
Jump to Post<html> <head> <title> Event Handler with multiple statement</title> <script language="javascript"> function cnt() { var count=parseInt(document.frm1.inp1.value); count++; document.frm1.inp1.value=count; alert(document.frm1.inp1.value); } </script> </head> <body> <form name="frm1" method="post" action=""> <h1>Evet Handler with multiple statements</h1> <p>Displays the number of times you click on your image.</p> <img src="test.jpg" onClick="cnt()"/> <input type="hidden" name="inp1" …
Jump to Postjust increment it everytime it clicks and save it to database
All 5 Replies

rajarajan2017
vaultdweller123
32
Posting Pro
keval_hack
-3
Junior Poster in Training
Banned
umandajayo
0
Light Poster
popinthecan
commented:
Thanks!
+0
popinthecan
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.