禁止粘贴复制功能问题 IFRAME是属于另一个WINDOW对象了,你得在它里面进行禁止.document.getElementById("show_text").contentWindow.document.oncopy = function(){ return false;} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在iframe引用的那一页加上你这一段<body onmousemove=\HideMenu()\ oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()">或者在iframe的style属性里加上style="-moz-user-select:none;/*For FF*/ select:expression(this.onselectstart=function(){return(false)});/*For IE*/copy:expression(this.onmousemove=function(){var tR=document.selection.createRange(), temp=tR.collapse(), temp= tR.select() });/*For IE*/"IE和FF都不能复制框选了 2010版最新"Dom对象模型手册"提供下载!web开发者必备. 求助:javascript正则表达式表单验证 body 加入了border属性 ,宽度会增加20px 感叹贴,大家写过一个js最大多少k,多少行? javascript读写xml的简单例子 js中如何使用Split。 dd-mm-yy日期检测 请问javascript能不能取得url参数传来的值? 请教表单提交到邮件换行问题 请问text框能否自增长?? 关于confirm()的问题 [五一散分]分享下午写的一段小程序
<body onmousemove=\HideMenu()\ oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()">
或者在iframe的style属性里加上
style="-moz-user-select:none;/*For FF*/
select:expression(this.onselectstart=function(){return(false)});/*For IE*/
copy:expression(this.onmousemove=function(){var tR=document.selection.createRange(), temp=tR.collapse(), temp= tR.select() });/*For IE*/"
IE和FF都不能复制框选了