Access innerHTML of layout cell header

I have the following html structure inside cell(‘b’) header of a layout:

<div><span>xxx</span><span id='test'>yyy</span></div>

Please can you tell me how I can access the innerHTML of span id=‘test’

Thanks

Purvez

The following approach will do
document.getElementById(‘test’).innerHTML

Alexandra, thanks for your reply.