You can do this with Vanilla JS, after you've added an ID so you can fetch the element.
Assuming:
You can do in JavaScript:
var someVar = document.getElementById('myButton').innerHTML; // -> White
var anotherVar = document.getElementById('myButton').textContent; // -> White
Both will hold "White"