Sorry for this noob question.
I'm still learning javascript.

What I want is to create a counter inside an input box.
This counter will count from 1 to 10 and display the result in input box.
The count will start when I press the button.
Using WHILE loop.

Hope someone will show me this simple codes.

Sorry noob here.