A simple script has it all:
Didn't know it was that easy!
Solution for IE:
Solution for Chrome:
Let me know if you know better ways :) and also how to do it on various browsers :) Thanks!
var content = clipboardData.getData("Text");put this in the script tag!
alert(content);
Didn't know it was that easy!
Solution for IE:
- Go to internet options->security
- Press custom level
- In the security settings, select disable under Allow paste operations via script
Solution for Chrome:
- Go to browser "Options"
- Choose Under the Hood Tab --> Content Settings
- Select Javascript -- Don't allow any site to run JavaScript
Let me know if you know better ways :) and also how to do it on various browsers :) Thanks!
Comments