document.write("
2006年12月07日 document.selection 表示当前网页中的选中内容。方法有:clear 清除选中的内容empty 取消选中createRange 返回 TextRange 或 Cont
2006年12月07日 ;lt;!--function Bold(){ var r = document.selection.createRange(); r.execCommand("
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日 ").focus();var r = document.selection.createRange();document.selection.clear();r.text = str;
2010年02月23日 ot;"); });以上代码并没有弹出对话框,说明没有像理想中的那样工作起来。应该把 document.body.attachEvent 换成 window.attachEvent。
2009年01月19日 有一个事件叫做 onload,也即可以写作:document.body.onload = func;。然而我们都被误导了,标准上并没有 document.body.onload 这个事件,只有 w
2009年05月08日 当前页面完整 URL。document.href 没有这个属性。document.URL 取值时等价于 window.location.href 或 document.location.hre
2010年10月19日 document.documentElement.scrollWidth 与 document.body.scrollWidth 的最大值;要使用 clientWidth,如果 document
")