这样的事可能吗?
<html>
<body>
<input type="text" oncopy="myFunction()" value="Try to copy this text">
<script>
function myFunction() {
alert('you tried to copy')
}
</script>
</body>
</html>Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
539 次 |
| 最近记录: |