selection.type (Property)

A property containing a type for the selection.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:String primitive
JavaScript syntax:IEmySelection.type

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

Property attributes: