The selection type is reflected here. There are only two reasonable settings for this in the context of a web browser (although there are potentially many other kinds of selection that are possible). The property should contain either None or Text.
You can build a conditional check into your handler which only does something if the type of the Selection object is set to "Text".
See also: | Input.type |
Prev | Home | Next |
selection.empty() | Up | Selection statement |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |