選択した要素のタイプを表現するselectionオブジェクトのtypeプロパティ
selectionオブジェクトのtypeプロパティ。値の種類は次の3つ。
none
text
control
controlはActiveXコントロールのことかな?(未確認)
alert(document.selection.type)