In JavaScript, is there a way to listen for when a user takes a screenshot?

Hi, We developed a web app based on the iPhone Safari browser, and we would like to ask if it's possible to use JavaScript to prevent the iPhone's screenshot function from capturing screenshots of the web page?

Answered by DTS Engineer in 811421022

There's no supported way for you to prevent screenshots from JavaScript inside of the iPhone Safari browser with the APIs currently available. If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here.

If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

Accepted Answer

There's no supported way for you to prevent screenshots from JavaScript inside of the iPhone Safari browser with the APIs currently available. If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here.

If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

In JavaScript, is there a way to listen for when a user takes a screenshot?
 
 
Q