When I click on myButton1 button, I want the value to change to Close Curtain from Open Curtain.HTML:
myButton1
Close Curtain
Open Curtain
<
Or more simple without having to name the element (with 'button' element):
Stop logs
and script :
var bWriteLog = true; function toggleLog(elt) { bWriteLog = !bWriteLog; elt.innerHTML = bWriteLog ? 'Stop logs' : 'Watch logs'; }