If a user is taking a screenshot, then a pop up appears

Hello GitHub community,

I am practicing on the application code, I would like the following action to happen:

When a user takes a screenshot of the web page, then a pop-up will appear.

Do you have any idea of the code to integrate for this action?

Thanks for any contributions following my post.