简体   繁体   English

如何在java脚本或jquery中禁用浏览器url的复制粘贴?

[英]How to disable copy paste of browsers url in java script or jquery?

How to disable copy paste of browsers URL in java script or j query.如何在 java 脚本或 j 查询中禁用浏览器 URL 的复制粘贴。 I have tried a lot from Google but i have not found exact solution for tackling this problem.我从谷歌尝试了很多,但我还没有找到解决这个问题的确切解决方案。 All solution I got is either disable body of web browser or disable any particular fields.我得到的所有解决方案都是禁用 Web 浏览器的主体或禁用任何特定字段。

I am Stuck on this problem please any one help me out.我被这个问题困住了,请任何人帮助我。

Browser Support for IE9 and firefox 14+.浏览器支持 IE9 和 Firefox 14+。

Thanks谢谢

You cannot.你不能。 And as for why people are down-voting you, even though your question is somewhat well-formed, I'd assume that's because people absolutely hate this idea.至于为什么人们对你投反对票,即使你的问题有点格式,我认为那是因为人们绝对讨厌这个想法。 So don't do it.所以不要这样做。

You can't.你不能。 The address bar is a part of the browser, and is not accessible to your webpage.地址栏是浏览器的一部分,您的网页无法访问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM