0
Onkeydown function
sry for Bad english ^^ i want to move a Box one px to the left, everytime when i click on spacebar (HTML,js)
1 Odpowiedź
+ 2
You need use events handling for listen at the keyboard on one hand, and on the other to stylish your box with the properties "position" set to "relative" and "left" dynamically set to "0" or "-1px" with javascript ( so you'll have to look at the functions for manipulating the DOM -- Document Object Model )...