type

The type read-only property of the type of the current selection.

MDN Reference