禁止div内文字被选中 js的问题,谁能解决呢? 做一个透明div放在文字所在div上面 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <div onselectstart="return false" onselect="document.selection.empty()">text</div> onselect="document.selection.empty()"怎么在JS文件中写呢?var selectDiv = document.createElement("div");document.body.appendChild(selectDiv);我要把document.selection.empty()放到这里。 var selectDiv = document.createElement("div"); selectDiv.onselectstart=function(){return false;}; selectDiv.onselect=function(){document.selection.empty()};document.body.appendChild(selectDiv); js正则表达式 在服务器中装了简繁通后,在转联动菜单繁体的时候,“碶”字变成"碶 " 一个很奇怪的框架问题!(错误描述得很仔细) 一个JAVASCIRPT菜单的问题,解决利马给200分 梅花雨,帮忙看看 请问如何在一个JavaScript函数中调用另一段asp程序? 怎样用点击文本来实现按钮功能 做了一个模拟窗口,问题是有什么好的办法让拖动标题的时候也使整个窗口拖动? cookie问题,跨域 在网页中如何在一框架中刷新另一个框架的文件内容 【求助】通过IE自动下载注册组件的问题 各位高手都进来看看,一个简单的问题
document.body.appendChild(selectDiv);我要把document.selection.empty()放到这里。
selectDiv.onselect=function(){document.selection.empty()};document.body.appendChild(selectDiv);