+ 3
Help me plz
My event listener not working 😭😭😭 https://code.sololearn.com/W9R2vpjZQiba/?ref=app
3 Antworten
+ 3
Rishi this can be solved in this way:
https://code.sololearn.com/Wnla92eBVPPT/?ref=app
+ 3
JaScript wow it's working! I have a few questions:
1) Why did you use preventDefault() function?
2) What's the "eve" parameter? It's working even without it.
Thank you for the help😊
+ 3
Rishi here in this aplication they are not necessary. But why - a click event happend after press and release of button. So for another events it can be needed. This is how to program safely.
eve = event parameter.
There are so many web-browsers for which needed to test and write a working code.
The most important thing that the code is working, is the additional js-file, what unfortunatelly you did not implemented.