var oSel=document.selection.createRange();
oSel.type=document.selection.type;
alert(oSel.parentElement().tagName);取选中内容的节点名称
oSel.type=document.selection.type;
alert(oSel.parentElement().tagName);取选中内容的节点名称
调试欢乐多
private/inet/mshtml/src/site/base/selecobj.cxx 中
当document.selection.type为control的时候你这个方法好像可以用.