在MVC web APP应用程序的IFrame中查看了文档的内容。 不得复制和打印内容。 两个函数style=“pointer-events:none; 我试着用了"。 禁用iframe的oncontextmenu=“return false”将正常工作。
但是,右键单击将弹出“显示帧源”,显示“显示源”。 你怎么能限制这个?
另外,如何限制丝网印刷选项? 我们知道还有其他工具可以捕获数据,但客户希望限制丝网印刷选项。
功能click ie () {
if (文档. all ) {
返回假;
}
}
功能clickns (e ) {
if (document.layers|| (document.getelementbyid! 文档. all ) }{
if(e.which==2||e.which==3) {
返回假;
}
}
}
if (文档. layers ) {
document.capture events (event.mousedown;
document.onmousedown=clickNS; ` enter代码here `
}
else {
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
document.on context menu=new function (返回假) )。
无论提供什么样的援助,请予以赞扬。