How many attributes does "onClick " tag has? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How many attributes does "onClick " tag has?

I know only alert one. I need more functions and attributes of it.

9th Mar 2017, 6:33 AM
Yadumeet Singh
Yadumeet Singh - avatar
3 Answers
+ 10
@Mario . You are absolutely right
9th Mar 2017, 8:42 AM
Siddharth Saraf
+ 9
onClick is an attribute, not a tag. you can use any function you want to execute when the object is clicked.
9th Mar 2017, 6:41 AM
Mario L.
Mario L. - avatar
0
Well, thanks but onClick does extend with an equals sign and there we put alert() or something, don't we?
12th Mar 2017, 1:33 AM
Yadumeet Singh
Yadumeet Singh - avatar