What I want to do is be able to change the text inside of a button by making the text inside an actual variable.

Something like this:

<button type=button>status</button>

but instead of a string, it's a variable:

var status = 'on';
Edit
Report