When I click on myButton1 button, I want the value to change to Close Curtain from Open Curtain.HTML:
myButton1
Close Curtain
Open Curtain
<
You are missing an opening quote on the id= and you have a semi-colon after the function declaration. Also, the input tag does not need a closing tag.
This works: