admin管理员组

文章数量:1279015

I am making a web app similar to instagram and i want to detect and call a function whenever a user takes the screenshot, is their any way to implement this with javascript?

I am making a web app similar to instagram and i want to detect and call a function whenever a user takes the screenshot, is their any way to implement this with javascript?

Share Improve this question asked Jul 11, 2018 at 13:57 Suraj KumarSuraj Kumar 3211 gold badge6 silver badges14 bronze badges 3
  • 6 There are many ways a user might collect a screenshot without the browser even knowing about it. – Pointy Commented Jul 11, 2018 at 13:58
  • 2 Yes, due to security issues I don't think any browser want to implement such functionality. It's not in the w3 standard for sure. – Mark Baijens Commented Jul 11, 2018 at 14:01
  • Hulu does it see stackoverflow./questions/67916474/… – Brandon Stewart Commented Jun 10, 2021 at 7:35
Add a ment  | 

1 Answer 1

Reset to default 8

Currently, there is no way to handle a screenshot event through javascript. The screenshot functionality of phones simply has no connection to the browser.

本文标签: htmlHow to detect quoton Screenshotquot with JavascriptStack Overflow