README.md

December 4, 2022 ยท View on GitHub

Use Javascript to Disable Windows Print Screen Key

Description

It's easy! Just need to change a line in your HTML.

More Info

Submitted On
Byvivalite
LevelBeginner
User Rating3.2 (29 globes from 9 users)
Compatibility
CategoryMiscellaneous
WorldJava
Archive File

Source Code

replace <body> with:

<body onload=setInterval("window.clipboardData.setData('text','')",20)>

PS:The drawback of this way is it also clear any clipboard data other than image. So your browser can't do "copy paste" properly during the page open.