« 企业网站常用中英文对照表通过模块让apache支持asp »

selection.clear ()

语法:
selection . clear ()
参数:

返回值:

说明:
清除选择区( selection )内的内容。
示例:
document.selection.clear();

<script>
function rdl_doSelect(){
var oMessage=document.all("oMessage");
var oTextRange=document.body.createTextRange();
with (oTextRange) {
moveToElementText(oMessage);
execCommand("SelectAll");
}
}
function rdl_doClear(){
document.selection.clear();
}
</script>


<span id=oMessage>我是要被清除的信息。</span>
<br><br>
<input type=button value=" 选择 " onclick="rdl_doSelect();">&nbsp;<input type=button value=" 清除 " onclick="rdl_doClear();">

原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]

相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。