Syntax :

document.getElementById(‘heading’).innerText

Sumber : http://www.dotnetspider.com/resources/22276-Get-text-label-using-Javascript.aspx