+ 1
How to move with buttons?
Can anyone tell me how to make a button move something in java script? Like for instant if i put "var = puppyPet" how do i make puppyPet move with âĄïžâŹ ïžâŹïžâŹïž buttons?
1 Resposta
+ 6
You could set the moving element position as absolute or relative and then change its left, right, bottom and top CSS properties through JavaScript in a function-handler for the button click event.