My problem is that when I use this code:
var queuediv = document.getElementById(\'MSO_ContentTable\'); var total = get_text(queuediv); countTotal = total.split(/
You are splitting by white space characters (line breaks, tabs ...). These seems to vary in DOM representation of different browsers. I assume you are trying to split words. Try:
total.split(/ /).length;
or
total.replace(/\n\r\f/, '').split(/\s/).length
you may replace \v and \t also.
\v
\t