现在的需求是这样的,我事先复制一段内容,当点击一个事件把这些复制的内容粘贴到一个文本框或是编辑器内,我在IE中实现了,但是FIREFOX下面就不能用了,有哪位高手帮忙一下啊!
if(window._isIE == true)
{
this.iframe.contentWindow.focus();
this.iframe.contentWindow.document.execCommand(CMD, false, sValue);
this.iframe.contentWindow.focus();
}
else if (isFirefox=navigator.userAgent.indexOf("Firefox")>0)
{
//alert('您使用的是FIREFOX浏览器.');
this.iframe.contentWindow.focus();
this.iframe.contentWindow.document.execCommand(CMD, false, sValue);
this.iframe.contentWindow.focus();
}
if(window._isIE == true)
{
this.iframe.contentWindow.focus();
this.iframe.contentWindow.document.execCommand(CMD, false, sValue);
this.iframe.contentWindow.focus();
}
else if (isFirefox=navigator.userAgent.indexOf("Firefox")>0)
{
//alert('您使用的是FIREFOX浏览器.');
this.iframe.contentWindow.focus();
this.iframe.contentWindow.document.execCommand(CMD, false, sValue);
this.iframe.contentWindow.focus();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货