+ 13
how to restart the motion of a moving object after stopping it in java sript??
I have made a box move by clicking on the button then I stopped it by another now how start the motion again from the point where it stopped?🤔🤔
4 Respuestas
+ 12
thank u and
how is my code -- box moving
Remember I am a beginner
+ 11
Can u tell how I can use that stop button to stop the motion again
+ 3
set the offset of the box back to its beginning
for example:
document.getElementById ("myBox").style.left='20px';
this would set the offset of the box from the left to 20px
+ 3
It's good for a beginner