document.getElementById('*spaM4').textContent
var exampleLabel = new Gtk.Label({ label: 'something' }); console.log(exampleLabel.label); //output: 'something'