[Project_owners] getSelection() length

Michael Bar-David mbd1987 at gmail.com
Tue Mar 28 12:51:15 EST 2006


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20060328/0c2f434b/attachment.htm


More information about the Project_owners mailing list