如何在Firefox浏览器中清除剪贴板数据 [英] How to clear a Clipboard data in Firefox browser

查看:202
本文介绍了如何在Firefox浏览器中清除剪贴板数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


i我是新的蜜蜂脚本和一些我如何找到清除剪贴板数据的代码它适用于IE浏览器不适用于Firefox可以任何人帮助我我们需要改变什么来为Firefox工作它是非常紧急.................

函数fnClearData() {

var content = clipboardData.getData(" Text");

window.clipboardData.clearData(''HTML'');

document.onmousedown = fnDisable

}


提前致谢

hi all,

i am new bee to script and some how i find code to clear data of clipboard it is working fine for IE browser not for Firefox can any one help me out what all we need to change in order to work it for Firefox it is preety urgent.................

function fnClearData(){
var content = clipboardData.getData("Text");

window.clipboardData.clearData(''HTML'');
document.onmousedown = fnDisable
}

Thanks in advance

推荐答案

大家好


以下声明适用于IE但不适用于Firefox如何将其用于Firefox请帮助解决这个问题紧急.... ...........


window.clipboardData.clearData();


事先提前,

rakesh
hi all

the below statement is working well for IE but not for Firefox how to use it for Firefox pls any one help on this issue it is urgent...............

window.clipboardData.clearData();

thnks in advance,
rakesh


但是可以任何一个建议我需要为该方法使用的替代方法,以便为Firefox浏览器工作
but can any one suggest which is the alternative method i need to use for that method in order to work it for Firefox browser


大家好我这里有两个文本框


输入电子邮件:


确认电子邮件:


i有一个要求,即我不应该让用户从第一个文本框复制电子邮件并将其粘贴到其他文本框中。


所以我使用了清除剪贴板的技术一直工作正常,直到我测试IE时,我用Firefox测试它是不行的我使用代码清除剪贴板是


window.clipboardData.clearData();


现在应该怎么做才能工作它适用于Firefox ..............................


还有一个?是不是我用了正确的方法进行了我的重新测试..................


请建议我并建议我是什么技术我必须使用这是非常紧急请帮助我解决这个问题........................


提前感谢,

rakesh
hi all i have two text boxes here

Enter Email:

Confirm Email:

i have a requirement stating that i should not enable user to copy the email from first text box and paste it in other.

so i have used a technique of clearing a clipboard that has worked fine until i have tested for IE when i tested with Firefox it is not working i used the code to clear clipboard is

window.clipboardData.clearData();

now wht should i do to work it for Firefox..............................

and one more ?? is did i used the correct way for my reqiurement..................

pls suggest me and also suggest me wht is the technique i have to use this is very urgent pls help me out in this issue........................

thanks in advance,
rakesh


这篇关于如何在Firefox浏览器中清除剪贴板数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆