document.write("
2006年12月07日 -function Bold(){ var r = document.selection.createRange(); r.execCommand("Bold&q
2006年12月07日 document.selection 表示当前网页中的选中内容。方法有:clear 清除选中的内容empty 取消选中createRange 返回 TextRange 或 Cont
2008年11月12日 ").focus();var r = document.selection.createRange();document.selection.clear();r.text = str;
2006年12月07日 onclick="javascript:alert('type是:'+document.selection.type);" /></div&g
2006年12月07日 gt;<!--function Foo(){ document.selection.clear();}--></script
2006年12月07日 gt;<!--function Foo(){ document.selection.empty();}--></script
2008年11月12日 document.selection.empty() 这句不能换用 document.selection.clear(),虽然 clear() 从语义上说更合理,关于此请参见 document.s
2010年02月23日 ot;"); });以上代码并没有弹出对话框,说明没有像理想中的那样工作起来。应该把 document.body.attachEvent 换成 window.attachEvent。
")