DEV Community

Discussion on: Can an html button have two onclick function?

Collapse
 
uzair004 profile image
Muhammad Uzair

JavaScript event listener should be used.

Collapse
 
whataluckyguy profile image
Lalit Kumar

Yeah totally agreed, but I thought i should it will help beginners