0

help me with event name ?

i have created 2 (up and down ) button using html button tag . using onclick button it moves 5px on each click. but i want untill the button is pressed it keeps moving . suggest the js event name . i have try with (keypress ,mousedown ) but these events are related to keyboard and mouse hense not working.

15th Jul 2020, 3:35 AM
Divya Mohan
Divya Mohan - avatar
5 ответов
+ 3
Divya Mohan Here is the fully working one: (just editing Rithea Sreng's solution) https://code.sololearn.com/WDUr7E0jdP1O/?ref=app
15th Jul 2020, 4:57 AM
hackxsaras
0
https://code.sololearn.com/WjAktOXV3Yd2/?ref=app
15th Jul 2020, 4:05 AM
Divya Mohan
Divya Mohan - avatar
15th Jul 2020, 4:29 AM
hackxsaras