Using HTML button element to change a variable in the Javascript

I see, would it also be possible to use this to control a camera’s position?