Sfter some searches, I understood that instead of using document.getSelection() in an extension, I should use window.content.getSelection(). But, I need to know it's length - and this JS code of the extension:
var word = window.content.getSelection();
alert(word.length);

alerted "undefined"

how can I get the selection's length ?

Thanks
Michael Bar-Daivd
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to