I am using this to retrieve the count
var window.getSelection().getRangeAt(0).startOffset;
and this is what I have so far to restore the count.
var range = window.getSelection().getRangeAt(0);
range.setStart(dNode, dc);
range.insertNode (mcmsfinalLinkhandle);
I am using localStorage to hold the count. This may seem tedious but I appreciate any help. This should be an entry level javascript issue so I feel I should be able to do this without convoluted solution. So far all I am lacking is the ability to place by character instead of by node or line and to keep the caret at the point of insert. Thx again for any help.