Self-solved! First bit of javascript I sorted out for myself...
Browser.ExecJS
( "{ var ctl = document.getElementById('code');
var startPos = ctl.selectionStart;
var endPos = ctl.selectionEnd;
startPos + "","" + endPos; }" )
Where "code" is the ID of the textarea, in my case... note the double ""s!