[Project_owners] getSelection() length
soyapim at gmail.com
Tue Mar 28 13:26:35 EST 2006
Michael Bar-David wrote:
> 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();
this should be:
var word = window.content.getSelection().toString();
> alerted "undefined"
> how can I get the selection's length ?
More information about the Project_owners